Open beckyconning opened 6 years ago
Could you find the real example when this case happens?
node -e "require('http').createServer().listen(8080)"
http connections being left open for a long time is a typical feature. it is commonly found in report generation. http connections being left open indefinitely could happen either purposefully or accidentally on pretty much any web server.
E.g.
cef-pdf --server &
node -e "require('http').createServer().listen(8080)" &
curl -X POST http://localhost:9288/_.pdf --header "Content-Location: http://localhost:8080"
the curl request will never finish and when i close it the cef-pdf
process which was spawned continues forever. after a duration the entire cef-pdf http server crashes with a segmentation fault.
to act as a resilient http service cef-pdf
must keep its connections as a client and as a server alive, must clean up allocated resources on a connection by connection basis as these connections are closed and must not crash.
Load end may never occur its important to clean up when connection is closed.