Skip to content

Commit

Permalink
Merge pull request #11 from atoulme/fix_vertx_behavior
Browse files Browse the repository at this point in the history
fix vertx registering handlers
  • Loading branch information
atoulme authored Jun 5, 2023
2 parents 6abe071 + ecb31f6 commit 61bb895
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,17 @@ public AsyncCompletion start() {
new NetClientOptions()
.setTcpKeepAlive(true)
.setConnectTimeout(connectTimeout)
.setIdleTimeout(idleTimeout));
.setIdleTimeout(idleTimeout)
.setRegisterWriteHandler(true));
server =
vertx
.createNetServer(
new NetServerOptions()
.setPort(listenPort)
.setHost(networkInterface)
.setTcpKeepAlive(true)
.setIdleTimeout(idleTimeout))
.setIdleTimeout(idleTimeout)
.setRegisterWriteHandler(true))
.connectHandler(this::receiveMessage);
CompletableAsyncCompletion complete = AsyncCompletion.incomplete();
server.listen(
Expand Down

0 comments on commit 61bb895

Please sign in to comment.