🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
2 messages
2 total messages Started by Peter Th�nell Fri, 02 Apr 2004 10:17
HTTPConnection timeout?
#288
Author: Peter Th�nell
Date: Fri, 02 Apr 2004 10:17
8 lines
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?
Re: HTTPConnection timeout?
#289
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads