On Sun, Sep 09, 2001 at 11:09:40AM -0700, Scott G. Miller wrote:
> > 
> > Scott was a little lazy when he first wrote the Auth and used
> > setSoTimeout to do timeout, and I was a little lazy when I worked on it
> > later and did not fix that - and setSoTimeout has been known to cause
> > problems with some jvms (*cough* M$ *cough*).
> 
> Is there a better way to do timeouts on blocking reads?

When a connection comes up, it needs a thread anyways, so you can afford
to spawn a new thread to use while connecting. I did that though and put
a timeout for the whole process, so the auth timeout in itself isn't
very pointful now I think.


-- 
'DeCSS would be fine. Where is it?'
'Here,' Montag touched his head.
'Ah,' Granger smiled and nodded.

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to