Platform/Software Version: SVR.JS 3.4.21 or older, 3.7.1 or older
Steps to Reproduce:
- Install SVR.JS
- Enable HTTPS and HTTP/2
- Start SVR.JS
- Visit very long URL page (without query string) using HTTP/2, for example https://forum.svrjs.org/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
Actual Behavior: 500 Internal Server Error with ENAMETOOLONG code in JavaScript error stack
Additional Information:
This bug is reproduced, if HTTP/2 is enabled, since Node.JS will not emit clientError event in case of those URLs. If HTTP/2 is not enabled, Node.JS will emit clientError event and SVR.JS will return 414 URI Too Long or other client error. If significant length is in query string, the bug wouldn't be triggered.