Hi,
 i'm using sofia 1.12.7 and i trying to use tport_pend to handled close
of connection, but i have some problems:

What i done on my sources:

On tport object recover from incoming request a set this params:
tport_set_params(tport, TPTAG_KEEPALIVE(10000), 
                         TPTAG_PINGPONG(20000),
                         TPTAG_PONG2PING(1),
                         TAG_END());
and set callback:
tport_pend(tport, NULL, closed_tport_callback, my_data)


Exceptions not handled:
1. Manage callback on PONG timeout:
In this case my callback isn't called because tport_keepalive_timer
function call tport_close without call my callback. Seems works if i
insert 
tport_pending_error (self, NULL, ECOMM); (after convert this function to
public)
before tport_close (on tport_keepalive_timer function). About at row
~450 on tport_type_tcp.c

2. Manage callback on close of connection:
Also, in this case my callback isn't called. I needed insert 
tport_pending_error (self, NULL, ECOMM);
on tport_recv_event function (on tport.c) before tport_shutdown0 (about
at row 2866).

Could this a solution correct? Have you an idea how manage this
exceptions?

Thanks in advance.

Ge@@ru



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to