problem: Spring Reactor is too outdated

This commit is contained in:
Igor Artamonov
2021-05-05 14:39:43 -04:00
parent 053bdc9549
commit adfc35e994
9 changed files with 62 additions and 53 deletions

View File

@@ -92,10 +92,8 @@ class ProxyServer(
}
log.info("Listening Proxy on ${config.host}:${config.port}")
var serverBuilder = HttpServer.create()
.tcpConfiguration {
it.bootstrap { b ->
b.handler(errorHandler)
}
.doOnChannelInit { _, channel, _ ->
channel.pipeline().addFirst(errorHandler)
}
.host(config.host)
.port(config.port)