Skip to content

Fixed http_server timeout logic for requestTimeout and headerTimeout

According to the documentation and also logic, headersTimeout should be smaller or equal to requestTimeout. This fixes the logic handling this check.

Node could also clamp requestTimeout to headersTimeout if the latter is larger, but that's a design decision for a different person.

I suspect there might be other range issues like this, too.

Fixes: https://github.com/nodejs/node/issues/43355

Merge request reports

Loading