by guenter » 21 May 2007, 19:04
Short answer: No
Long answer: SocketImpl objects (which are the actual socket objects behind Socket, StreamSocket, etc.) are reference counted. As soon as the last Socket object referencing a SocketImpl goes away, the SocketImpl is destroyed and the socket it holds is closed. Closing a stream socket involves shutting down the socket. So, if the SocketConnector is the only one holding a reference to the StreamSocket, then, yes, the StreamSocket is closed and thus shutdown.