[OpenSIPS-Devel] [OpenSIPS/opensips] 4e43db: io_watch_del(): Suppress DEL errors for closed fds

Liviu Chircu noreply at github.com
Mon Apr 26 10:54:43 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4e43db731a5500163141607d9400e42a74d2f293
      https://github.com/OpenSIPS/opensips/commit/4e43db731a5500163141607d9400e42a74d2f293
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M io_wait.h

  Log Message:
  -----------
  io_watch_del(): Suppress DEL errors for closed fds

Similar fix to 21344d1f7 (from 6 years ago), but for newer Linux kernels
(e.g. 5.8.0), which return ENOENT instead of EBADF.  Fixes:

DBG:rest_client:_resume_async_http_req: HTTP response code: 200
DBG:tm:io_watch_del: [UDP_worker] io_watch_del op on index -1 246
    (0x561edd52c560, 246, -1, 0x10,0x1) fd_no=5 called
ERROR:tm:io_watch_del: [UDP_worker] removing fd from epoll
    (246 from 171) list failed: No such file or directory [2]





More information about the Devel mailing list