@@ -34,9 +34,19 @@ structure Config where
3434 maxHeaderSize : Nat := 8192
3535
3636 /--
37- Connection timeout in milliseconds .
37+ Maximum waiting time for more data .
3838 -/
39- timeoutMilliseconds : Time.Millisecond.Offset := 1000
39+ lingeringTimeout : Time.Millisecond.Offset := 5000
40+
41+ /--
42+ Timeout for keep-alive connections
43+ -/
44+ keepAliveTimeout : { x : Time.Millisecond.Offset // 0 < x } := ⟨45000 , by decide⟩
45+
46+ /--
47+ Maximum timeout time for request more data.
48+ -/
49+ requestTimeout : { x : Time.Millisecond.Offset // 0 < x } := ⟨10000 , by decide⟩
4050
4151 /--
4252 Whether to enable keep-alive connections by default.
@@ -49,7 +59,12 @@ structure Config where
4959 highMark : Nat := 4096
5060
5161 /--
52- Default buffer size for the connection.
62+ The maximum size that the connection can receive in a single recv call.
63+ -/
64+ maximumRecvSize : Nat := 8192
65+
66+ /--
67+ Default buffer size for the connection
5368 -/
5469 defaultPayloadBytes : Nat := 8192
5570
@@ -67,7 +82,6 @@ def toH1Config (config : Config) : Protocol.H1.Machine.Config :=
6782 { maxRequests := config.maxRequests
6883 maxHeaders := config.maxHeaders
6984 maxHeaderSize := config.maxHeaderSize
70- timeoutMilliseconds := config.timeoutMilliseconds
7185 enableKeepAlive := config.enableKeepAlive
7286 highMark := config.highMark
7387 serverName := config.serverName
0 commit comments