[sr-dev] [kamailio] tcpops: implement event_route for unexpectedly closed tcp connections (#454)
Armen Babikyan
notifications at github.com
Thu Dec 31 06:42:55 CET 2015
Hi Daniel,
I just repushed this branch. Originally, I only considered tcp connection kill via TCP RST (which results in read() == -1 && errno == ECONNRESET) and timeout events (read() == -1 && errno == ETIMEDOUT). I have revised my branch to also execute the event_route on gracefully-closed TCP connections (i.e. via TCP FIN), which is delivered to the program as read() == 0 (i.e. EOF).
Additionally, I have restricted the execution of this event_route that have a $conid variable that does not evaluate to "<null>" in the script. This is determined via connections that have TCP_REQ_COMPLETE(req) set to true (which is when con->id is copied to con->proto_reserved1). Do let me know if this is not the correct strategy here.
Thanks!
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/454#issuecomment-168128187
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151230/f1543f53/attachment.html>
More information about the sr-dev
mailing list