You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2008/10/18 16:40:11 UTC
svn commit: r705888 - /tomcat/connectors/trunk/jk/native/common/jk_connect.c
Author: mturk
Date: Sat Oct 18 07:40:10 2008
New Revision: 705888
URL: http://svn.apache.org/viewvc?rev=705888&view=rev
Log:
Can we have socket error, and errno==0?. Well OS is unknown and strange territory
Modified:
tomcat/connectors/trunk/jk/native/common/jk_connect.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_connect.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_connect.c?rev=705888&r1=705887&r2=705888&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_connect.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_connect.c Sat Oct 18 07:40:10 2008
@@ -809,7 +809,8 @@
if (JK_IS_SOCKET_ERROR(rd)) {
jk_shutdown_socket(sd, l);
JK_TRACE_EXIT(l);
- return (errno > 0) ? -errno : errno;
+ rd = (errno > 0) ? -errno : errno
+ return (rd == 0) ? JK_SOCKET_EOF : rd;
}
else if (rd == 0) {
jk_shutdown_socket(sd, l);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org