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)
Fixes the following Linux error by detecting timeouts on read calls and closing the stream.