Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does Antiweb linger on HTTP sockets?

antiweb http linger Sockets
0
Posted

Why does Antiweb linger on HTTP sockets?

0

When terminating an HTTP connection with a “Connection: close” HTTP header, Antiweb will shutdown() the write direction of the socket and continue to read and discard data from the socket for up to 2 seconds. This is required for HTTP/1.1 persistent connections. See here for more details. Note that Antiweb’s maximum linger period (2 seconds) is much shorter than Apache’s 30 seconds. Also, we don’t use a SIGALRM. Instead, lingering sockets are tracked with Antiweb’s regular connection state machine. We believe this is correctly implemented but please let us know if you encounter problems.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123