[kaffe] unix-pthreads accept timeout

Mathieu Dube mdube at 8d.com
Wed Aug 7 08:30:39 PDT 2002

Well the thing is that it seems to be the same for the vm as it outputs this:

java.io.InterruptedIOException: Accept timed out or was interrupted

when there's a timeout.

Attached is a newer patch that does the same with the jthreadedTimedRead.

more comments welcome.

On Wednesday 07 August 2002 11:18, you wrote:
> > Ok,
> > 	I changed it. I also put a check to see if the timeout is 0 to pass NULL
> > to select() and added a timeout*1000 since usecs and millisecs arent the
> > same. My java programmer here seems to say it works.
> Why don't you use the structure suggested by the BREAK_IF_LATE
> macros and companions?  If select returns EINTR (which I don't think
> is illegal), then your code thinks it's a timeout.
> 	- Godmar

Mathieu Dube -- mdube at 8d.com
8D Technologies Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout.diff
Type: text/x-c
Size: 1436 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20020807/fea9c71d/attachment-0003.bin 

More information about the kaffe mailing list