#213 Updates to non-blocking IO in gssproxy/client
Merged by cipherboy. Opened by cipherboy.
cipherboy/gssproxy nonblock-updates  into  master

Download 213.patch

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.

Comment inline. Please also update copyright on that file; we should have done that when we added the code.

4 new commits added

  • Bump copyright after modifications to gpm_common.c
  • Fix error handling in gpm_send_buffer/gpm_recv_buffer.
  • Fix handling of non-EPOLLIN/EPOLLOUT events
  • Simplify setting NONBLOCK on socket.

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

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit ec808ee6 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit 8f519997 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit f2530fc2 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit 9065aba1 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit b8f5b2f7 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit 5ed25ce4 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Commit ec808ee6 fixes this pull-request

Pull-Request has been merged by alexander.m.scheel@gmail.com

Metadata