See bugid 4118429, as listed in the "see also" field.
Basically, The fact that closing a socket's input stream closes the
socket itself is (a) undocumented (b) contrary to normal expectations
of an experienced network programmer, (c) not going to change.
Ergo, I think this needs documenting. (Similarly for the output stream.)
Javadocs as well as other places such issues will matter (tutorials etc).
Basically, The fact that closing a socket's input stream closes the
socket itself is (a) undocumented (b) contrary to normal expectations
of an experienced network programmer, (c) not going to change.
Ergo, I think this needs documenting. (Similarly for the output stream.)
Javadocs as well as other places such issues will matter (tutorials etc).
- duplicates
-
JDK-4717638 Socket's getInputStream().close() doesn't specify that it closes socket
-
- Resolved
-
- relates to
-
JDK-4118429 Sockets can't be "half open"
-
- Closed
-