Hi Dave:

    Aren't you glad that Mr. Bill decided to alter the errno error codes? I
believe that you can get the original error number by subtracting 10000 from
the number you saw in the error log. A check in errno.h yields the
following:

#define ENAMETOOLONG 38

    In a file called Winsock.h, the actual error code exists but with a
different meaning:

/*
 * All Windows Sockets error constants are biased by WSABASEERR from
 * the "normal"
 */
#define WSABASEERR              10000
.
.
#define WSAENOTSOCK             (WSABASEERR+38)

    I hope this helps.

Greg

----- Original Message -----
From: David Spitz <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Cc: Dave Spitz <[EMAIL PROTECTED]>; Java Apache
<[EMAIL PROTECTED]>
Sent: Friday, April 28, 2000 5:29 PM
Subject: help: socket errno 10038


> Windows 2000
> Apache 1.3.12
> Jserv 1.0
>
> In stress testing our servlet, we are encountering a situation where
apache
> seems to stop responding to requests. The error log contains a number of
> lines like this:
>
> [date] [Error] (22) Invalid argument: accept: (client socket) failed with
> errno = 10038
>
> The consequence is that after a while, apache simply stops responding to
> requests (servlet or otherwise).
>
> It's been a long time since I've done C, but in looking at the code it
> appears that the call to accept() in http_main.c is returning
INVALID_SOCKET
> for some reason.
>
> My question is, what might cause something like this? Is apache running
out
> of file (socket) descriptors?
>
> Don't get me wrong -- I'm sure it's our code, I'm just looking for hints
on
> where to look.
>
> thanks,
> David
>
>
>
> --
> ----------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>



--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to