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 2006/09/06 18:52:35 UTC
svn commit: r440792 - /tomcat/connectors/trunk/jk/native/common/jk_connect.c
Author: mturk
Date: Wed Sep 6 09:52:34 2006
New Revision: 440792
URL: http://svn.apache.org/viewvc?view=rev&rev=440792
Log:
Make WIN32 logging more human readable.
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?view=diff&rev=440792&r1=440791&r2=440792
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_connect.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_connect.c Wed Sep 6 09:52:34 2006
@@ -652,8 +652,13 @@
#if defined(WIN32) || (defined(NETWARE) && defined(__NOVELL_LIBC__))
u_long nr;
if (ioctlsocket(sock, FIONREAD, &nr) == 0) {
+ if (WSAGetLastError() == 0)
+ errno = 0;
+ else
+ errno = WSAGetLastError() - WSABASEERR;
return nr == 0 ? 0 : 1;
}
+ errno = WSAGetLastError() - WSABASEERR;
#else
int nr;
if (ioctl(sock, FIONREAD, (void*)&nr) == 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org