On Wed, 7 Mar 2001, Ronen Lazar wrote: > 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. If you are using HttpManager, you have setTimeout(), which sets the timeout on the socket, and setRequestTimeout(), a timeout on the whole transaction. See http://jigsaw.w3.org/Doc/Programmer/api/org/w3c/www/protocol/http/HttpManager.html#setTimeout(int) Regards, -- Yves Lafon - W3C "Baroula que barouleras, au tiéu toujou t'entourneras."Received on Wednesday, 7 March 2001 12:48:51 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:29 UTC