socket timeout patch
Andrew Haley
aph@cambridge.redhat.com
Wed Dec 12 10:23:00 GMT 2001
Nic Ferrier writes:
> The attached patch provides connection timeouts for java sockets.
>
> It's vital for paperclips (the GNU servlet engine) as well (I imagine) for
> any other HTTP implementation in java.
>
>
> The attached file contains some formatting changes over the original... I
> know the policy is not to accept such changes. Can someone confirm if the
> changes enclosed are acceptable, if not I would like to provide 2 patches,
> the first 2 correct the coding style of the existing files and the second to
> provide the fix.
Formatting patches must always be submitted separately.
In any case, there is a lot of broken formatting here.
This, for example:
- if (host != NULL)
- memcpy (&u.address.sin_addr, bytes, len);
+ if(host != NULL)
+ memcpy(&u.address.sin_addr, bytes, len);
and this:
- struct sockaddr *ptr = (struct sockaddr *) &u.address;
- if (len == 4)
+ struct sockaddr *ptr =(struct sockaddr *) &u.address;
+ if(len == 4)
some lines are too long:
- throw new java::io::IOException (
- JvNewStringLatin1 ("SocketImpl.create: unimplemented"));
+ throw new java::io::IOException(JvNewStringLatin1("SocketImpl.create: unimplemented"));
Please refer to http://www.gnu.org/prep/standards_toc.html .
Andrew.
More information about the Java-patches
mailing list