Article View: borland.public.jbuilder.java.api
Article #288HTTPConnection timeout?
From: Peter Th�nell
Date: Fri, 02 Apr 2004 10:17
Date: Fri, 02 Apr 2004 10:17
8 lines
1290 bytes
1290 bytes
In our application, servers sometimes cannot respond to requests or cannot complete sending files. (We deliberately overload the servers.) Currently the application jams because it's waiting for replies from the server which simply won't arrive. I have already devised a way by join()ing another thread, but that's not exactly a good solution. How can we (preferably using Sun's HTTP implementation) set a timeout that will interrupt the wait?
Technical Details
Message-ID:
<406d3dbb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,af95ef9020f20ba9,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2004-04-02 02:21:22 PST From: "Peter Th�nell" <thonellp@optusnet.com.au> Newsgroups: borland.public.jbuilder.java.api Subject: HTTPConnection timeout? Date: Fri, 2 Apr 2004 18:17:31 +0800 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 211.29.171.76 Message-ID: <406d3dbb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080901051 211.29.171.76 (2 Apr 2004 02:17:31 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail