LinuxGuy79 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Oct 2005 Posts: 9
|
Posted: Fri Dec 22, 2006 6:55 pm Post subject: Apache: Problem with sending multiple http posts |
|
|
I'm having a problem sending multiple posts to an apache webserver
I've written a remote client that sends files to a cgi script (one at a time). I use a multiple form http post to send the file and then I check the response from the webserver. To make it more efficient, I'm trying to use a persistent socket connection to the server for each post. The server and my program both use http1.1 and I've set the keep alive in the apache conf. The first post sends ok and the response indicates success from the server. When I send the second post though it takes the server several minutes to respond. The response indicates success but the delay is terrible. I have checked that the server is using the 1.1 version of the http protocol and that its not sending "Connection: close" in the response header file. If I use multiple sockets then it works fine, but apache is delaying subsequent posts on the same connection. I have used tcpdump and apache does ack the subsequent posts almost instantly so it is receiving the post when its sent and the delay is in apache itself.
Any ideas? |
|