We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78031f7 commit 7b3f55cCopy full SHA for 7b3f55c
cask/src/cask/main/Main.scala
@@ -10,6 +10,7 @@ import io.undertow.Undertow
10
import io.undertow.server.{HttpHandler, HttpServerExchange}
11
import io.undertow.server.handlers.BlockingHandler
12
import io.undertow.util.HttpString
13
+import org.xnio.Options
14
15
import scala.concurrent.ExecutionContext
16
@@ -65,6 +66,9 @@ abstract class Main{
65
66
if (!verbose) Main.silenceJboss()
67
val server = Undertow.builder
68
.addHttpListener(port, host)
69
+ .setSocketOption(Options.REUSE_ADDRESSES, true)
70
+ .setSocketOption(Options.TCP_NODELAY, true)
71
+ .setSocketOption(Options.USE_DIRECT_BUFFERS, true)
72
.setHandler(defaultHandler)
73
.build
74
server.start()
0 commit comments