Several simultaneous URLConnections to a single server
Posted on 2004-09-21
I have a java application using Sun's JDK 1.4 which opens
several URLConnections to our server. Some of these take
the server a long time to generate a response, and sometimes
the client has several that occur at the same time.
It appears that java does not allow them to all happen in parallel.
Perhaps java may be trying to reuse the same socket connection
for processing each http request in serial. With some of my slow
responses, however, this default limitation on parallel URLConnections
is really making things unacceptably slow.
Is there any way I can change the configuration so that there is
1. No small limit to the number of simultaneous connections
2. Even if some of the responses are slow, the other responses don't
have to wait.
Thanks a lot