add extra print for EpollWait for debugging
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
28aea97698
commit
68a3244b6b
|
@ -77,6 +77,7 @@ func Ping(address string, timeout time.Duration) error {
|
||||||
var nEvents int
|
var nEvents int
|
||||||
nEvents, err = unix.EpollWait(epfd, epollEvents[:], int(timeout.Milliseconds()))
|
nEvents, err = unix.EpollWait(epfd, epollEvents[:], int(timeout.Milliseconds()))
|
||||||
|
|
||||||
|
log.Println("EpollWait err:", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return os.NewSyscallError("epoll_wait", err)
|
return os.NewSyscallError("epoll_wait", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue