Restore backlog value

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-04-18 18:54:32 +05:30
parent 32169dbe80
commit d02a3504b7

View File

@ -11,6 +11,7 @@ import org.limium.picoserve.Server.ByteResponse
class Server(port: Int) {
val server: picoserve.Server = picoserve.Server.builder()
.port(8888)
.backlog(32)
.POST("/v1/captcha", (request) => {
val json = parse(request.getBodyString())
val param = json.extract[Parameters]