From: <cha...@us...> - 2008-12-22 03:36:39
|
Revision: 559 http://sipp.svn.sourceforge.net/sipp/?rev=559&view=rev Author: charlespwright Date: 2008-12-22 03:36:27 +0000 (Mon, 22 Dec 2008) Log Message: ----------- Fix: Enter congestion after buffering a write (From Martin H. VanLeeuwen). Modified Paths: -------------- sipp/trunk/sipp.cpp Modified: sipp/trunk/sipp.cpp =================================================================== --- sipp/trunk/sipp.cpp 2008-12-18 04:08:55 UTC (rev 558) +++ sipp/trunk/sipp.cpp 2008-12-22 03:36:27 UTC (rev 559) @@ -2648,6 +2648,7 @@ if (rc < 0) { if ((errno == EWOULDBLOCK) && (flags & WS_BUFFER)) { buffer_write(socket, buffer, len, dest); + enter_congestion(socket, errno); return len; } else { return rc; @@ -2672,6 +2673,7 @@ } else if (rc <= 0) { if ((errno == EWOULDBLOCK) && (flags & WS_BUFFER)) { buffer_write(socket, buffer, len, dest); + enter_congestion(socket, errno); return len; } if (useMessagef == 1) { @@ -2696,6 +2698,7 @@ rc, len, len, buffer); } buffer_write(socket, buffer + rc, len - rc, dest); + enter_congestion(socket, errno); } return rc; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |