#2973 Common responder code closes socket to early on client shutdown
Closed: Fixed None Opened 3 years ago by simo.

While I was looking at a problem in new code I found as error in the responder cleanup code by looking at this strace output:

epoll_wait(3, [], 1, 60000)             = 0
gettimeofday({1457658965, 643457}, NULL) = 0
close(9)                                = 0
epoll_ctl(3, EPOLL_CTL_DEL, 9, 0x7ffdd3860890) = -1 EBADF (Bad file descriptor)

Here the socket is closed before the tevent fd event is freed causing tevent to call epoll_ctl on a closed descriptor, which is not nice.

Fields changed

owner: somebody => simo
patch: 0 => 1

milestone: NEEDS_TRIAGE => SSSD 1.14 alpha
resolution: => fixed
status: new => closed

Fields changed

rhbz: => 0

Metadata Update from @simo:
- Issue assigned to simo
- Issue set to the milestone: SSSD 1.14 alpha

2 years ago

Login to comment on this ticket.