[sr-dev] [kamailio/kamailio] TCP closed event route improvement (#816)

Camille Oudot notifications at github.com
Fri Oct 7 16:41:58 CEST 2016


This patch for the **tcpops** module (+ some core modifications) improves the original **tcp:closed** event route handling by triggering different event routes, depending on the reason why the connection was closed:

- **tcp:closed** for "normal" closure by the other side (FIN,ACK)
- **tcp:timeout** for timeouts (unanswered keepalives)
- **tcp:reset** if reset by peer (RST)

It will break the compatibility with older scripts, as some events will require new event routes to be caught.

I'll modify the documentation accordingly if/when this is accepted.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/816

-- Commit Summary --

  * core: dedicated struct for TCP closed events
  * tcpops: use dedicated routes for tcp close events

-- File Changes --

    M modules/tcpops/tcpops.c (21)
    M modules/tcpops/tcpops.h (1)
    M modules/tcpops/tcpops_mod.c (16)
    M tcp_conn.h (13)
    M tcp_read.c (20)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/816.patch
https://github.com/kamailio/kamailio/pull/816.diff

-- 
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/pull/816
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161007/6e159d8c/attachment-0001.html>


More information about the sr-dev mailing list