net: Not close accept conn when epoll failed #34392
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
to anyone who cares this bug...yesterday I found one of online servers listener disappeared, and tried some methods to find out the reason, cause our server go code can't be the killer.. finnaly I used gdb watchpoint, caught the goroutine stack :
go version 1.12.6
then found this bug...
(dlv) p netfd
(dlv) p err
So I changed the code from fd.Close -> netfd.Close
I mean this bug could be reproduced in production environment，and the error returned by epoll_ctl (EBADF) is impossible I think .... both epfd and newFD.Sysfd look ok, but I'll post more information here if i solve this..