Author: rjung Date: Sat May 23 13:04:49 2015 New Revision: 1681346 URL: http://svn.apache.org/r1681346 Log: Add fix missing in original forward port r1490006 of:
r1490001 | markt | 2013-06-05 20:51:58 +0200 (Wed, 05 Jun 2013) | 1 line Make sockets useable for non-blocking IO. Return bytes written if >0 and error code is EAGAIN rather than the error code so the clients know how many bytes were written. Modified: tomcat/native/trunk/native/src/network.c Modified: tomcat/native/trunk/native/src/network.c URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/network.c?rev=1681346&r1=1681345&r2=1681346&view=diff ============================================================================== --- tomcat/native/trunk/native/src/network.c (original) +++ tomcat/native/trunk/native/src/network.c Sat May 23 13:04:49 2015 @@ -652,7 +652,7 @@ TCN_IMPLEMENT_CALL(jint, Socket, sendibb return (jint)nbytes; else { TCN_ERROR_WRAP(ss); - return -(jint)nbytes; + return -(jint)ss; } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org