-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Problem with ServerResponse emitting close - http server crashes #2570
Comments
@Kami - Thanks for the report, can you please get the log with
|
@koichik Here is the output with debug on:
|
Sorry for a wrong bug report, it was a bug in our code. We had a function which incorrectly wrapped a function passed to |
its actually happened to me too. i tracked it down to the "keep alive" connection. i think there's something wrong in commit dd9593c. it does not take into account keep-alive connections and the "on close" event listener keeps registering until it hits the limit of listeners (11) and then fails. |
I had this issue too. This comment gave me a hint for my case: the cause was an interaction with long-stack-traces module. |
LST-related resolution: See tlrobinson/long-stack-traces#9 (comment) |
When I hit an http server with curl it crashes with the following exception:
It seems to be related to commit dd9593c. If I revert this commit, the server doesn't crashes.
My first impression was that it has something to do with how the curl closes the connection, but so far I haven't been able to create an isolated test case yet which reproduces it.
I will dig deeper into it tomorrow and try to come up with a test case which reproduces it.
The text was updated successfully, but these errors were encountered: