Hi,
Below is a small issue concerning only Windows port of Sofia-SIP.
Environment:
Sofia-SIP-1.12.10 is used as a typical UAS with TCP as SIP transport on Windows.
Problem description:
Accepted socket remains in CLOSE_WAIT state.
How to reproduce:
UAC connects to Sofia-SIP UAS, makes basic call and finally tears down TCP
connection.
Tport output:
// Windows
tport_wakeup(00CB7310): events HUP
tport(00CB7310)
tport(00CB7310, 0)
tport_set_events(00CB7310): events
tport(00CB7310): set timer at 1797891 ms because idle since send
// Linux
tport_wakeup(0x9cf91e8): events IN
tport_recv_event(0x9cf91e8)
tport_shutdown0(0x9cf91e8, 2)
tport_close(0x9cf91e8): tcp/x.x.x.x:3095/sip
tport(0x9cf91e8): set timer at 0 ms because zap
When remote UAC tears down TCP connection 'events HUP' is raised on Windows,
while 'events IN' on Linux.
If I modify Sofia's code to raise 'events IN' in case of Windows too, socket is
closed.
The other workaround is to modify tport_hup_event handler
isntead of
< tport_shutdown0(self, 0);
use
> tport_shutdown0(self, 2);
Any inside thoughts would be really helpful.
Thanks,
Arsen.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel