Increase Binary WebSocket Buffer (#1923)

increase buffer of the binary WebSocket
connection from 10 to 100
This commit is contained in:
Dmitry Bushev 2021-08-04 14:50:44 +03:00 committed by GitHub
parent bbffd30c63
commit 77bfeb9149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,11 @@ class MainModule(serverConfig: LanguageServerConfig, logLevel: LogLevel) {
new BinaryWebSocketServer(
InboundMessageDecoder,
BinaryEncoder.empty,
new BinaryConnectionControllerFactory(fileManager)
new BinaryConnectionControllerFactory(fileManager),
BinaryWebSocketServer.Config(
outgoingBufferSize = 100,
lazyMessageTimeout = 10.seconds
)
)
log.trace("Created Binary WebSocket Server [{}].", binaryServer)