From 3f4f728974f7b96e7b4685aa28f0a87581fe9567 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 May 2009 15:42:25 +0000 Subject: [PATCH] Wed Apr 29 13:03:20 CDT 2009 Pekka Pessi * tport: close half-closed idle connections on windows, too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13317 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/tport/tport.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index ea25f31897..9f4e607b94 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Thu Apr 16 12:20:45 CDT 2009 +Fri May 15 10:42:15 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport.c index c3d43e0ac2..dd3892ecdb 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport.c @@ -2815,8 +2815,9 @@ void tport_hup_event(tport_t *self) if (!tport_is_secondary(self)) return; - /* End of stream */ - tport_shutdown0(self, 0); + /* Shutdown completely if there are no queued messages */ + /* Problem reported by Arsen Chaloyan */ + tport_shutdown0(self, tport_has_queued(self) ? 0 : 2); tport_set_secondary_timer(self); }