Re: socket TIME_WAIT state
Achim Grolms <[email protected]> Thu, 24 Feb 2005 15:31:12 +0100
| Newsgroups | gmane.text.xml.soap.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thursday 24 February 2005 12:53, Ching, Vivian M, ALABS wrote:
> If I am using SOAPHTTPConnection to send and receive soap
> messages. My question is: when are the socket connections
> released?
Have a look to src/org/apache/soap/util/net/HTTPUtils.java :
at the end of post( ... )
You will find that the socket is closed at the and of every call
of post(...):
/* All done here! */
bOutStream.close();
outStream.close();
bInStream.close();
inStream.close();
-> s.close();
return response;
HTH, Achim