Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events: do call SetReadDeadline() in listen()
In 6dc3797, a read deadline was added so that listen() would not block forever on recv() calls when the listener was closed. This was necessary because the event listener was Close()'d by cancelling a context. If recv() was blocking, the loop would not ever notice the closed context. In the current logic, Close() will call el.conn.Close(), which will cause any blocking recv() call to return io.EOF, thus closing the event loop as expected. Therefore, the read deadline is no longer necessary. Related: #34 Signed-off-by: Nick Rosbrook <nr@enr0n.net>
- Loading branch information