Make sure client also has values set.

This commit is contained in:
Joakim Erdfelt 2013-09-12 10:49:30 -07:00
parent 43c92f8117
commit 0dcea8f2a2
1 changed files with 4 additions and 0 deletions

View File

@ -155,12 +155,14 @@ public class ServerContainer extends ClientContainer implements javax.websocket.
@Override
public void setAsyncSendTimeout(long ms)
{
super.setAsyncSendTimeout(ms);
webSocketServerFactory.getPolicy().setAsyncWriteTimeout(ms);
}
@Override
public void setDefaultMaxBinaryMessageBufferSize(int max)
{
super.setDefaultMaxBinaryMessageBufferSize(max);
// overall message limit (used in non-streaming)
webSocketServerFactory.getPolicy().setMaxBinaryMessageSize(max);
// incoming streaming buffer size
@ -170,12 +172,14 @@ public class ServerContainer extends ClientContainer implements javax.websocket.
@Override
public void setDefaultMaxSessionIdleTimeout(long ms)
{
super.setDefaultMaxSessionIdleTimeout(ms);
webSocketServerFactory.getPolicy().setIdleTimeout(ms);
}
@Override
public void setDefaultMaxTextMessageBufferSize(int max)
{
super.setDefaultMaxTextMessageBufferSize(max);
// overall message limit (used in non-streaming)
webSocketServerFactory.getPolicy().setMaxTextMessageSize(max);
// incoming streaming buffer size