diff --git a/doc/api/http.md b/doc/api/http.md index 0c9117202498a8..7b047e877467cb 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1445,6 +1445,20 @@ This event is guaranteed to be passed an instance of the {net.Socket} class, a subclass of {stream.Duplex}, unless the user specifies a socket type other than {net.Socket}. +### Event: `'dropRequest'` + + + +* `request` {http.IncomingMessage} Arguments for the HTTP request, as it is in + the [`'request'`][] event +* `socket` {stream.Duplex} Network socket between the server and client + +When the number of requests on a socket reaches the threshold of +`server.maxRequestsPerSocket`, the server will drop new requests +and emit `'dropRequest'` event instead. + ### `server.close([callback])`