vapor-community / sockets

🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575 stars 54 forks source link

fix eagain linux #133

Closed tanner0101 closed 7 years ago

tanner0101 commented 7 years ago

Fixes the following Linux error by detecting timeouts on read calls and closing the stream.

Server error: dispatch(Sockets Error: Failed trying to read from socket

Identifier: Sockets.SocketsError.readFailed)
Server error: dispatch(Sockets Error: Failed trying to read from socket

Identifier: Sockets.SocketsError.readFailed)
Server error: dispatch(Sockets Error: Failed trying to read from socket

Identifier: Sockets.SocketsError.readFailed)