socket and timeouts
Tom Tromey
tromey@redhat.com
Sat Jun 30 06:41:00 GMT 2001
>>>>> "Nic" == Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
Nic> But as far as intelligent shutdown handling goes I'm not entirely
Nic> sure what should be done. Should I be doing something to support
Nic> SO_LINGER? Presumably that's handled by glibc?
Nic> - code the streams' close methods call the socket's close method.
Nic> - write a CNI close method which does a shutdown on the socket
My reading of the JDK 1.3 docs is that the socket close should just
call the Posix close(), and that shutdownInput() and shutdownOutput()
should be calling the Posix shutdown().
Nic> Perhaps it should be different depending on the value of close()?
I don't understand what you mean.
Tom
More information about the Java
mailing list