File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/libraries/net/src/processing/net Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4646 */
4747public class Client implements Runnable {
4848
49- protected static final int MAX_BUFFER_SIZE = 2 << 27 ; // 128 MB
49+ protected static final int MAX_BUFFER_SIZE = 1 << 27 ; // 128 MB
5050
5151 PApplet parent ;
5252 Method clientEventMethod ;
@@ -222,7 +222,7 @@ public void run() {
222222 byte [] readBuffer ;
223223 { // make the read buffer same size as socket receive buffer so that
224224 // we don't waste cycles calling listeners when there is more data waiting
225- int readBufferSize = 2 << 16 ; // 64 KB (default socket receive buffer size)
225+ int readBufferSize = 1 << 16 ; // 64 KB (default socket receive buffer size)
226226 try {
227227 readBufferSize = socket .getReceiveBufferSize ();
228228 } catch (SocketException ignore ) { }
You can’t perform that action at this time.
0 commit comments