First commit simplifies setting NONBLOCK on the FD; per man 2 socket, these should be equivalent.
Second commit exposes epoll errors and validates that the proper EPOLLIN/EPOLLOUT response was received.
Third commit simplifies some error case logic (freeing buffer, closing sockets), ensuring that epollfd will be closed before the socket fd.
Fold this else branch into the previous else if for clarity.
else if
Comment inline. Please also update copyright on that file; we should have done that when we added the code.
4 new commits added
Merged else block; bumped copyright.
Commit f2530fc2 fixes this pull-request
Pull-Request has been merged by alexander.m.scheel@gmail.com
Commit b8f5b2f7 fixes this pull-request
Commit ec808ee6 fixes this pull-request
Commit 8f519997 fixes this pull-request
Commit 9065aba1 fixes this pull-request
Commit 5ed25ce4 fixes this pull-request
First commit simplifies setting NONBLOCK on the FD; per man 2 socket, these should be equivalent.
Second commit exposes epoll errors and validates that the proper EPOLLIN/EPOLLOUT response was received.
Third commit simplifies some error case logic (freeing buffer, closing sockets), ensuring that epollfd will be closed before the socket fd.