* 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
-Thu Apr 16 12:20:45 CDT 2009
+Fri May 15 10:42:15 CDT 2009
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);
}