@@ -937,6 +937,26 @@ added: v0.1.90
937937
938938Stops the server from accepting new connections. See [ ` net.Server.close() ` ] [ ] .
939939
940+ ### server.headersTimeout
941+ <!-- YAML
942+ added: v11.3.0
943+ -->
944+
945+ * {number} ** Default:** ` 40000 `
946+
947+ Limit the amount of time the parser will wait to receive the complete HTTP
948+ headers.
949+
950+ In case of inactivity, the rules defined in [ ` server.timeout ` ] [ ] apply. However,
951+ that inactivity based timeout would still allow the connection to be kept open
952+ if the headers are being sent very slowly (by default, up to a byte per 2
953+ minutes). In order to prevent this, whenever header data arrives an additional
954+ check is made that more than ` server.headersTimeout ` milliseconds has not
955+ passed since the connection was established. If the check fails, a ` 'timeout' `
956+ event is emitted on the server object, and (by default) the socket is destroyed.
957+ See [ ` server.timeout ` ] [ ] for more information on how timeout behavior can be
958+ customized.
959+
940960### server.listen()
941961
942962Starts the HTTP server listening for connections.
@@ -958,26 +978,6 @@ added: v0.7.0
958978
959979Limits maximum incoming headers count. If set to 0, no limit will be applied.
960980
961- ### server.headersTimeout
962- <!-- YAML
963- added: v11.3.0
964- -->
965-
966- * {number} ** Default:** ` 40000 `
967-
968- Limit the amount of time the parser will wait to receive the complete HTTP
969- headers.
970-
971- In case of inactivity, the rules defined in [ server.timeout] [ ] apply. However,
972- that inactivity based timeout would still allow the connection to be kept open
973- if the headers are being sent very slowly (by default, up to a byte per 2
974- minutes). In order to prevent this, whenever header data arrives an additional
975- check is made that more than ` server.headersTimeout ` milliseconds has not
976- passed since the connection was established. If the check fails, a ` 'timeout' `
977- event is emitted on the server object, and (by default) the socket is destroyed.
978- See [ server.timeout] [ ] for more information on how timeout behaviour can be
979- customised.
980-
981981### server.setTimeout([ msecs] [ , callback ] )
982982<!-- YAML
983983added: v0.9.12
0 commit comments