RE: [Httpunit-develop] Persistent connections
Brought to you by:
russgold
From: Rasmussen, C. <Constantine.Rasmussen@FMR.COM> - 2001-06-22 19:35:22
|
It looks like the connection per se is not disconnected but when it is read as an input stream it is closed on line 124 of HttpWebResponse.java. This may be how it gets disconnected, otherwise, I don't see any reason not to reuse the connection. Any thoughts? Can you do 2 things and run a regression test to see if anything breaks for me? 1) Comment out the stream close code on line 124 of HttpWebResponse.java 2) Move the declaration for the connection in WebConnection::newResponse to the top of the class. These are the 2 changes that I have to make that I am worried about impacting existing code. If these changes test out OK, then I'll add some minor changes to work with the persistent connection. Thanks, Costa |