Skip to content

Commit

Permalink
Increase Binary WebSocket Buffer (#1923)
Browse files Browse the repository at this point in the history
increase buffer of the binary WebSocket
connection from 10 to 100
  • Loading branch information
4e6 authored Aug 4, 2021
1 parent bbffd30 commit 77bfeb9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 77bfeb9

Please sign in to comment.