grizeldi grizeldi - 5 months ago 8x
Java Question

What happens on closing ServerSocket

What happens to client Sockets when I close a ServerSocket?
Will all connections made with serverSocket.accept() be closed as well?


Closing a ServerSocket will prevent new connections from being created, but it won't shut down existing connections.