Restoring JSR356 Session.setMax*MessageBufferSize() spec behavior

This commit is contained in:
Joakim Erdfelt 2017-06-20 13:40:05 -07:00
parent 9e2b25bae2
commit 52ded32ea0
1 changed files with 12 additions and 2 deletions

View File

@ -338,7 +338,12 @@ public class JsrSession extends WebSocketSession implements javax.websocket.Sess
getJsrEndpointFunctions().removeMessageHandler(handler);
}
}
/**
* Maximum size of a whole BINARY message that this implementation can buffer.
*
* @param length the length in bytes
*/
@Override
public void setMaxBinaryMessageBufferSize(int length)
{
@ -351,7 +356,12 @@ public class JsrSession extends WebSocketSession implements javax.websocket.Sess
getPolicy().setIdleTimeout(milliseconds);
super.setIdleTimeout(milliseconds);
}
/**
* Maximum size of a whole TEXT message that this implementation can buffer.
*
* @param length the length in bytes
*/
@Override
public void setMaxTextMessageBufferSize(int length)
{