Skip to content

Commit

Permalink
Fix for #888: configure the buffer size as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Feb 11, 2013
1 parent 266c311 commit 5ea5722
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public TomcatWebSocketHandler(AtmosphereRequest request, AtmosphereFramework fra
} else {
webSocketWriteTimeout = -1;
}

s = framework.getAtmosphereConfig().getInitParameter(ApplicationConfig.WEBSOCKET_BUFFER_SIZE);
if (s != null) {
setByteBufferMaxSize(Integer.valueOf(s));
setCharBufferMaxSize(getByteBufferMaxSize());
}
}

@Override
Expand Down

0 comments on commit 5ea5722

Please sign in to comment.