On Sat, May 13, 2006 at 04:54:02PM +0200, Sven de Marothy wrote:
> On Sat, 2006-05-13 at 13:54 +0200, Robert Schuster wrote:
> > Hi,
> > could you test whether Socket.setSoTimeout() really sets the send and 
> > receive
> > timeout?
> > 
> 
> I did, and it seems to work fine for me (A difference in 3 minutes and
> 1 second timeout when you're setting it to 1 second is quite
> noticable). 
> 
> Note that from what I read though, not all socket implementations
> necessarily support this stuff.

AFAIK Linux is the only one. If we want to stay portable we need to use
select() and wait for the time of the timeout. In libgcj its already
handled this way. Thats the safest.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

Reply via email to