4 ms·
You might want to add "Connection: close" to the request. Otherwise the server won't close the connection immediately, but only after a keep-alive timeout. In t
by ivanr 12y ago
You might want to add "Connection: close" to the request. Otherwise the server won't close the connection immediately, but only after a keep-alive timeout. In the meantime, your program will be waiting to read on the socket. In some cases you might even get an additional 408 response. Changing protocol to 1.0 should also work.