Skip to content

Commit a4667b6

Browse files
dswijseanmonstar
authored andcommitted
chore(docs): add info on required timer for header_read_timeout
1 parent 2d1bd70 commit a4667b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/conn/http1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ impl Builder {
316316
/// Set a timeout for reading client request headers. If a client does not
317317
/// transmit the entire header within this time, the connection is closed.
318318
///
319+
/// Requires a [`Timer`] set by [`Builder::timer`] to take effect. Panics if `header_read_timeout` is configured
320+
/// without a [`Timer`].
321+
///
319322
/// Pass `None` to disable.
320323
///
321324
/// Default is 30 seconds.

0 commit comments

Comments
 (0)