Tuesday, June 11, 2002 05:18 AM
Well the reason for the latency is due to the fact that Axis (at least Beta 1) has a very poor implementation in the handling of TCP communication. The response from the server is divided in two HTTP packets. The delays for the ACKs are on average 350 milliseconds. Then the clients waits for the server to close the socket. This takes on average 370 millisecs.
Build your own client that parses the content_length from the HTTP header and read that number of bytes from the stream and then close the socket from the client.
This should reduce the response time.
Or use HTTP 1.1.