Version 9.4.1 blocks requests on FreeBSD and macOS
oklas opened this issue · comments
Version 9.4.1 blocks any request. The browser shows "waiting" status.
Version 9.4.0 works fine.
FreeBSD: 12.2 node: v14.16.1.
experiencing this on macos 12.6, rolling back to 9.4.0 resolved it
experiencing this on macos 12.6, rolling back to 9.4.0 resolved it
Same for me on Ventura. Could this be the culprit?
The code has been significantly changed with v10. Please reopen or create a new issue with a reproduction is you are still seeing this issue on v10. Thanks!
This can happen in functions (like text()
, json()
, buffer()
, etc, in custom code, or in libraries using such functions) that receive incoming data from an http stream (from req :IncomingMessage
) in case data has already been received from it.
This can happen when the user or some library handler gets the control and gets data from the stream, and then some other handler gets the control and tries to get the data from the stream again. In such a case, there will be no more data in the stream because the content length amount of data has already been received. So, it hangs and doesn't respond due to waiting for more data.
Versions prior to 9.4.1 are tolerant of this case.