News for hackers. Stuff that matters.
Re:Show HN: ZeroHTTPd: A web server to teach Linux performan... by derefr on Monday June 03, 2019 @10:58AM (#20083768)
Not in all use-cases. If your backend is serving long-lived HTTP streams (big downloads; chunked SSE streams; websocket sessions), it may make more sense to close and re-open those sockets between sessions, since they live long enough to establish TCP window characteristics that may not apply to the session succeeding them (e.g. an interactive-RPC websocket session, reusing a TCP connection previously used to stream a GB of data using huge packets, will start off quite a bit slower for its use-case than a “fresh” TCP session would.)
Re:Show HN: ZeroHTTPd: A web server to teach Linux performan... by tele_ski on Monday June 03, 2019 @07:38PM (#20090186)
Thats fair, always need to optimize for your use case. I run thousands of small transactions per second so no keep-alive would absolutely kill us.