๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #289

Re: HTTPConnection timeout?

#289
From: Owen Green
Date: Fri, 02 Apr 2004 12:08
16 lines
1282 bytes
On Fri, 2 Apr 2004 18:17:31 +0800, Peter Th๏ฟฝnell wrote:

> How can we (preferably using Sun's HTTP
> implementation) set a timeout that will interrupt the wait?

These properties: 

http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

sun.net.client.defaultConnectTimeout (default: -1)
sun.net.client.defaultReadTimeout (default: -1)

Obviously these won't translate across JVMs

-- 
Owen
Technical Details
Message-ID: <1dax2lp7toxl5.dlg@borkborkbork.bork>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <406d3dbb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,af95ef9020f20ba9
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2004-04-02 04:15:15 PST
From: Owen Green <o.t.green@ntlworld.com>
Subject: Re: HTTPConnection timeout?
Newsgroups: borland.public.jbuilder.java.api
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
References: <406d3dbb@newsgroups.borland.com>
Date: Fri, 2 Apr 2004 13:08:04 +0100
Message-ID: <1dax2lp7toxl5.dlg@borkborkbork.bork>
User-Agent: 40tude_Dialog/2.0.5.1
NNTP-Posting-Host: 80.1.205.234
X-Trace: newsgroups.borland.com 1080907822 80.1.205.234 (2 Apr 2004 04:10:22 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail