java.net.Socket.connect always times out with connection timeout of non-zero

Bryce McKinlay bryce@mckinlay.net.nz
Thu Aug 7 01:05:00 GMT 2003


Hi Jacob,

I can confirm this bug, and your fix looks good to me. It looks like 
accept() is also affected by the same problem, so I am going to check 
in this modified patch.

Regards

Bryce.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: SocketImpl.patch
Type: application/octet-stream
Size: 3422 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030807/3e7360ad/attachment.obj>
-------------- next part --------------





On Thursday, Aug 7, 2003, at 08:22 Pacific/Auckland, Jacob Gladish 
wrote:

> I found, what I believe is a problem in the java.net.Socket class where
> the connect() method always times out when passing in a timeout value 
> of
> anything greater than zero. I applied the following change to the
> natPlaingSocketImpl.cc class, and it appears to be working fine now.


More information about the Java-patches mailing list