Updated the QOTM example so that people do not ask questions about truncated packets
This commit is contained in:
parent
e92e10d6b0
commit
f0e766dcb3
@ -55,6 +55,8 @@ public class QuoteOfTheMomentClient {
|
|||||||
b.setOption("broadcast", "true");
|
b.setOption("broadcast", "true");
|
||||||
|
|
||||||
// Allow packets as large as up to 1024 bytes (default is 768).
|
// 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(
|
b.setOption(
|
||||||
"receiveBufferSizePredictorFactory",
|
"receiveBufferSizePredictorFactory",
|
||||||
new FixedReceiveBufferSizePredictorFactory(1024));
|
new FixedReceiveBufferSizePredictorFactory(1024));
|
||||||
|
@ -54,6 +54,8 @@ public class QuoteOfTheMomentServer {
|
|||||||
b.setOption("broadcast", "false");
|
b.setOption("broadcast", "false");
|
||||||
|
|
||||||
// Allow packets as large as up to 1024 bytes (default is 768).
|
// 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(
|
b.setOption(
|
||||||
"receiveBufferSizePredictorFactory",
|
"receiveBufferSizePredictorFactory",
|
||||||
new FixedReceiveBufferSizePredictorFactory(1024));
|
new FixedReceiveBufferSizePredictorFactory(1024));
|
||||||
|
Loading…
Reference in New Issue
Block a user