[sr-dev] [tracker] Comment added: tcp_async=yes breaks connect_timeout (no effect) and TCP reject detection

sip-router admin at sip-router.org
Wed Jul 6 14:03:04 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#136 - tcp_async=yes breaks connect_timeout (no effect) and TCP reject detection
User who did this - Iñaki Baz Castillo (ibc)

----------
Comment by Andrei Pelinescu in the devel maillist:

Yes, it's a known limitation. Basically when async it's own, tm has no way of knowing that a connect() has failed and would have to rely on sip timeout.
Of course these could be changed, but it would have both performance and memory usage impact and it would be very hard to integrate with tls. I would rather not do it in the near future.

The tcp_connect_timeout refers to how long the tcp connect will be attempted, but it's not linked to tm. The value is not 100% exact, the tcp timers are executed on a best effort basis, at most at 5s intervals and at minimum 1/16 seconds, so you should expect a 5s error If it's too much for you, change TCP_MAIN_SELECT_TIMEOUT and TCP_CHILD_SELECT_TIMEOUT in tcp_conn.h (btw. we don't use select() anymore, the names where not updated when we switched to
epoll/kqueue/dev_poll).
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=136#comment234

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list