On 18 Dec 2015, at 18:17, Denis Kudriashov <dionisiydk@gmail.com> wrote:
2015-12-18 16:43 GMT+01:00 phil@highoctane.be <phil@highoctane.be>: Hi Denis,
This makes me think about the VNC server, which is a TCP server.
The implementation of it is on top of another generic one.
http://www.smalltalkhub.com/#!/~PharoExtras/RFB
I will look at it to extract error handling logic. I not look at it too much for now. But when I do I will put nice tests for this cases. Which is very important to me. Not only loop implementation duplicated in every servers but tests too (and most times no tests exists)
ZnServer and subclasses have a quite robust implementation of server socket to connection handler logic with extensive error handling. All there in the standard image. But I assume you already looked at it.