Transactions not always ended if client closes socket prematurely
See original GitHub issueThe first test in test/instrumentation/modules/http/aborted-requests-enabled.js
randomly hangs and never completes on Jenkins. It happens every 5 times or so we run a test on Jenkins and it happens on multiple different versions of Node.js.
This might be related to elastic/apm-agent-nodejs#1350
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
4.7. The Mysteries of Connection Close - HTTP - O'Reilly
When a connection closes after some request data was sent but before the response is returned, the client cannot be 100% sure how...
Read more >Why the TCP server socket is closed unexpectedly?
Ah, I said that almost of connection loss problems will be occured due to server side. Sorry, it can be occured due to...
Read more >Why doesn't client's close() of socket cause server's select() to ...
On the server's side, the socket is created via an accept() call, is blocking, is passed to a child server process via fork(),...
Read more >Passenger should not process requests from clients that have ...
But the only way to detect whether a client has disconnected, is by reading from its socket, or by writing to its socket....
Read more >How to detect when the client closes the connection?
The problem is: How can we tell if a socket connection has been closed by the client? We need a separate process that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created a separate issue regarding marking the transaction as aborted: elastic/apm#154
That sounds like a great idea. Unless there’s some hidden edge case that I haven’t thought of yet, it might just work 👍