Remove `bodyTimeout` because downloading body is not under our control.

This commit is contained in:
cheatfate 2021-02-10 13:31:02 +02:00 committed by zah
parent 4406ab7072
commit 45cb009be2
1 changed files with 0 additions and 4 deletions

View File

@ -57,7 +57,6 @@ type
acceptLoop*: Future[void]
lifetime*: Future[void]
headersTimeout: Duration
bodyTimeout: Duration
maxHeadersSize: int
maxRequestBodySize: int
processCallback: HttpProcessCallback
@ -127,7 +126,6 @@ proc new*(htype: typedesc[HttpServerRef],
bufferSize: int = 4096,
backlogSize: int = 100,
httpHeadersTimeout = 10.seconds,
httpBodyTimeout = 30.seconds,
maxHeadersSize: int = 8192,
maxRequestBodySize: int = 1_048_576): HttpResult[HttpServerRef] =
@ -138,7 +136,6 @@ proc new*(htype: typedesc[HttpServerRef],
var res = HttpServerRef(
maxConnections: maxConnections,
headersTimeout: httpHeadersTimeout,
bodyTimeout: httpBodyTimeout,
maxHeadersSize: maxHeadersSize,
maxRequestBodySize: maxRequestBodySize,
processCallback: processCallback,
@ -1118,7 +1115,6 @@ proc requestInfo*(req: HttpRequestRef, contentType = "text/text"): string =
$req.connection.server.maxRequestBodySize))
res.add(kv("server.backlog", $req.connection.server.backLogSize))
res.add(kv("server.headersTimeout", $req.connection.server.headersTimeout))
res.add(kv("server.bodyTimeout", $req.connection.server.bodyTimeout))
res.add(kv("server.baseUri", $req.connection.server.baseUri))
res.add(kv("server.flags", $req.connection.server.flags))
res.add(kv("server.socket.flags", $req.connection.server.socketFlags))