socket TIME_WAIT state

"Ching, Vivian M, ALABS" <[email protected]> Thu, 24 Feb 2005 05:53:39 -0600
Newsgroups gmane.text.xml.soap.devel
Message-ID <456FD0E7B215B24ABBAD711614E4A7A20A0BB802@OCCLUST03EVS1.ugd.att.com>
If I am using SOAPHTTPConnection to send and receive soap
messages.  My question is: when are the socket connections 
released?  Do I have to do anything explicitly to close it?  
Server ends says the socket is going into TIME_WAIT state (sometimes?).
Will this happen if client timesout before response is received?
I am on jdk1.3.  Thanks for any help!
 
 
Envelope env = null; 
Message msg = new Message();
SOAPHTTPConnection st = new SOAPHTTPConnection();
msg.setSOAPTransport(st);
st.setTimeout(2000);
 
try {
msg.send(new URL(sURL), soapAction, requestEnvelope);
env = msg.receiveEnvelope();
} 
 
 
Vivian Ching
AT&T
MT A2-2E04
200 S Laurel Avenue
Middletown, NJ 07748
732.420.2452