From 00b426fa1824bca1ce5733b676b806a55be912c1 Mon Sep 17 00:00:00 2001 From: Robinson Date: Sat, 16 Jul 2022 10:25:37 -0400 Subject: [PATCH] Changed default socket options to 2mb --- src/dorkbox/network/Configuration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/network/Configuration.kt b/src/dorkbox/network/Configuration.kt index c08666a0..7b1b6180 100644 --- a/src/dorkbox/network/Configuration.kt +++ b/src/dorkbox/network/Configuration.kt @@ -431,7 +431,7 @@ open class Configuration { * * A value of 0 will 'auto-configure' this setting */ - var sendBufferSize = 0 + var sendBufferSize = 2097152 set(value) { require(!contextDefined) { errorMessage } field = value @@ -448,7 +448,7 @@ open class Configuration { * * A value of 0 will 'auto-configure' this setting. */ - var receiveBufferSize = 0 + var receiveBufferSize = 2097152 set(value) { require(!contextDefined) { errorMessage } field = value