- From: John Philip Anderson <jpanderson_215@hotmail.com>
- Date: Wed, 07 Mar 2001 18:17:47 -0000
- To: RonenL@gilian.com
- Cc: www-jigsaw@w3.org
Dear Mr. Lazar, Right now, I am working through the details of Client-Side Jigsaw connections. While I do not fully understand the code yet, I maybe of some help you. I believe that the fundamental distinction between the class "org.w3c.www.protocol.http.HttpURLConnection", from that you proposed to derive, and the class "org.w3c.www.protocol.http.HttpBasicConnection" maybe pertinent to your question. "HttpURLConnection" is associated with a specific Request/Reply message pair. It does not appear to independently reference the underlying socket. "HttpBasicConnection" is an implementation of the abstract class "org.w3c.www.protocol.http.HttpConnection." It directly creates new sockets and calls setSoTimeout() on them in the HttpBasicConnection.markUsed() method. So to start with, you could try changing the default value for "timeout" (from 300000 ms to whatever) directly in the HttpBasicConnection source code (and see if this approach solves your problem) and recompile. Are you sure that the HttpManager.setTimeout() is not working? Truly yours, John Philip Anderson jpanderson215@hotmail.com >From: Ronen Lazar <RonenL@gilian.com> >To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org> >Subject: Setting timeout in HttpURLConnection >Date: Wed, 7 Mar 2001 05:23:42 -0500 (EST) > >Hi all, > >How can I control (set) the value of the blocking timeout for a HTTP >request >in HttpURLConnection? >I'm looking for the effect similar to Socket.setSoTimeout (...). > >I tried to derive from the HttpURLConnection object and implement my own >method like: > > public void setTimeout (int ms) > { > HttpManager.getManager().setTimeout (ms); > } > >but it doesn't seem to do the job. > >Any idea? > >TIA, >Ronen. > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Received on Wednesday, 7 March 2001 13:18:19 UTC