On Saturday, 14 May 2022 at 20:44:54 UTC, frame wrote:
Take care of socket exceptions - especially if you want to make
a port to Windows.
You should always expect one. It's not enough to test
`Socket.isAlive` - a client socket may be faulty and any
illegal socket operation throws and kills your loop. Even if
`isAlive` works as expected, it may changes the status before
you have add the socket to the set. You don't want your server
to crash if a client misbehaves.
Which kind of socket exception could be triggered by a client?
Andrea