Name: dbT83986 Date: 03/02/99
I'd like to be able to close a TCP connection in one direction
only. It would be logical if doing something like
Socket s;
...
s.getOutputStream().close();
would have this effect but in fact that causes the whole socket
to get closed. In C one can call shutdown(2) which closes one
direction only, i.e. the peer will know (or can know) that the
socket is closed in one direction but data can still flow the
other way.
(Review ID: 54956)
======================================================================
- duplicates
-
JDK-4035663 Sockets can not successfully close one side while continuing to use the other
-
- Resolved
-