Updated the QOTM example so that people do not ask questions about truncated packets

This commit is contained in:
Trustin Lee 2009-11-02 06:38:53 +00:00
parent e92e10d6b0
commit f0e766dcb3
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,8 @@ public class QuoteOfTheMomentClient {
b.setOption("broadcast", "true");
// Allow packets as large as up to 1024 bytes (default is 768).
// You could increase or decrease this value to avoid truncated packets
// or to improve memory footprint respectively.
b.setOption(
"receiveBufferSizePredictorFactory",
new FixedReceiveBufferSizePredictorFactory(1024));

View File

@ -54,6 +54,8 @@ public class QuoteOfTheMomentServer {
b.setOption("broadcast", "false");
// Allow packets as large as up to 1024 bytes (default is 768).
// You could increase or decrease this value to avoid truncated packets
// or to improve memory footprint respectively.
b.setOption(
"receiveBufferSizePredictorFactory",
new FixedReceiveBufferSizePredictorFactory(1024));