- Posted by: murugesh ramachandran
- Posted on: July 11 2002 19:53 EDT
Is it possible to pool HttpConnections as we pool Database Connections.
I created a pool of 5 HttpConnection Objects. It works fine for the first 5 times(ITs creating a new objects). 6th Time the pool is called it will try to give an already used HttpConnection. When i try to Post Data to this connection i get an error.
java.net.ProtocolException: Cannot write output after reading input.
Am i missing something ??
- Pooling Http Connections - java.net.ProtocolException: Cannot wr by Klaas van der Ploeg on July 15 2002 04:20 EDT
- Pooling Http Connections - java.net.ProtocolException: Cannot wr by Purva Agr on July 27 2010 06:11 EDT
Are you using the correct http-headers? (Connection: keep-alive, etc...) Normally, when a request is made, the connection is closed by the webserver automatically.
Have u got any solution for this problem? Even i want to do the same thing. hw r u creating http connection pooling and how r u managing this.