We constantly POLLIN the outPipe of CGI, until the connection times out after 1 second. We then close the connection, but only close the outPipe fd and leave the socket open. Then the browser is stuck on waiting on a response and we already lost the socket fd.
We constantly POLLIN the outPipe of CGI, until the connection times out after 1 second. We then close the connection, but only close the outPipe fd and leave the socket open. Then the browser is stuck on waiting on a response and we already lost the socket fd.