Release: serverino - please destroy it.

Andrea Fontana nospam at example.com
Sat May 14 23:23:47 UTC 2022


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


More information about the Digitalmars-d-announce mailing list