Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -112,6 +112,7 @@ public class ConcurrentWebSocketSessionDecorator extends WebSocketSessionDecorat
|
||||
return (start > 0 ? (System.currentTimeMillis() - start) : 0);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void sendMessage(WebSocketMessage<?> message) throws IOException {
|
||||
if (shouldNotSend()) {
|
||||
@@ -124,10 +125,9 @@ public class ConcurrentWebSocketSessionDecorator extends WebSocketSessionDecorat
|
||||
do {
|
||||
if (!tryFlushMessageBuffer()) {
|
||||
if (logger.isTraceEnabled()) {
|
||||
String text = String.format("Another send already in progress: " +
|
||||
logger.trace(String.format("Another send already in progress: " +
|
||||
"session id '%s':, \"in-progress\" send time %d (ms), buffer size %d bytes",
|
||||
getId(), getTimeSinceSendStarted(), getBufferSize());
|
||||
logger.trace(text);
|
||||
getId(), getTimeSinceSendStarted(), getBufferSize()));
|
||||
}
|
||||
checkSessionLimits();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user