rasendubi / arachne

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Don't close client socket #45

Closed rasendubi closed 8 years ago

rasendubi commented 8 years ago

The socket was closed even before client was runned, so Client.Core got received already closed socket. This patch fixes the issue, however socket may leak.

One possible fix is to create io-stream that will close socket, once finished. In the case of abnormal exit, client threads must send Nothing down the given io-stream. This may not work, though. (TODO: think about masks.)

drets commented 8 years ago

LGTM :+1: