]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Wed Apr 29 13:03:20 CDT 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Fri, 15 May 2009 15:42:25 +0000 (15:42 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 15 May 2009 15:42:25 +0000 (15:42 +0000)
  * 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
libs/sofia-sip/libsofia-sip-ua/tport/tport.c

index ea25f3189730cdb954e43d5a10527def50517824..9f4e607b94a263e18db47124e7c1303b41b15bf8 100644 (file)
@@ -1 +1 @@
-Thu Apr 16 12:20:45 CDT 2009
+Fri May 15 10:42:15 CDT 2009
index c3d43e0ac203de9f00cca2b842c5317f4ed16813..dd3892ecdb9f8fdc012acb698159bc6bbf30e964 100644 (file)
@@ -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);
 }