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