Is there anybody on the list who experienced the same problem or at least 
confirm that I'm on the right track with my analyzes below.
Thanks,
Arsen.




________________________________
From: Arsen Chaloyan <achalo...@yahoo.com>
To: Sofia-sip-devel@lists.sourceforge.net
Sent: Monday, March 16, 2009 5:58:51 PM
Subject: [Sofia-sip-devel] TCP UAS resource leak [win]


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.
------------------------------------------------------------------------------
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to