[sr-dev] [kamailio/kamailio] Kamailio was not accepting TLS connections (#2796)

Daniel-Constantin Mierla notifications at github.com
Tue Jul 6 11:29:10 CEST 2021


It is strange that the file descriptor value in the error messages is so high (e.g., 30406), given the open connections is not close to the limit:

```
Jun 29 08:08:14 fep-1 /usr/local/fep-kamailio/sbin/kamailio[14111]: ERROR: <core> [core/tcp_main.c:4451]: handle_tcpconn_ev(): io_watch_del(3) failed: for 0x7f524f7862d0, fd 30406
```

The POSIX requires to use always the lowest available file descriptor value - `File Descriptor Allocation`:

  * https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_14

Maybe the implementation in your OS has bugs or doesn't follow the POSIX. You can try to investigate the list of file descriptors listed in the proc for Kamailio processes, should be in paths like:

```
/proc/_PID_/fd/
```

And you have to replace `_PID_` with the values corresponding to Kamailio processes, interesting would be for `tcp main process` (usually the last process in `kamctl ps`) and for the `tcp receiver ...`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2796#issuecomment-874608571
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210706/1bd4d9a3/attachment-0001.htm>


More information about the sr-dev mailing list