Author: mturk
Date: Tue Oct 30 07:27:04 2012
New Revision: 1403635
URL: http://svn.apache.org/viewvc?rev=1403635&view=rev
Log:
Try to fix BZ54064. In case nothing was written, don't loop endlesly
Modified:
tomcat/native/branches/1.1.x/native/src/network.c
Modified: tomcat/native/branches/1.1.x/native/src/network.c
URL:
http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/network.c?rev=1403635&r1=1403634&r2=1403635&view=diff
==============================================================================
--- tomcat/native/branches/1.1.x/native/src/network.c (original)
+++ tomcat/native/branches/1.1.x/native/src/network.c Tue Oct 30 07:27:04 2012
@@ -600,7 +600,7 @@ TCN_IMPLEMENT_CALL(jint, Socket, sendbb)
while (sent < nbytes) {
apr_size_t wr = nbytes - sent;
ss = (*s->net->send)(s->opaque, s->jsbbuff + offset + sent, &wr);
- if (ss != APR_SUCCESS)
+ if (ss != APR_SUCCESS || wr == 0)
break;
sent += wr;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]