httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <>
Subject Re: [PATCH] mpm_winnt -- check for connection and then update context
Date Tue, 20 Nov 2001 15:26:52 GMT
I believe the attached patch is a better solution. The
setsockopt(SO_UPDATE_ACCEPT_CONTEXT) needs to be issued on the socket once the socket has
been accepted (after AcceptEx, not before). There is an optimization to not call
setsockopt on accept sockets that are being reused but I'll worry about that later. Let me
know how this patch works.


----- Original Message -----
From: "Mladen Turk" <>
To: <>
Sent: Tuesday, November 20, 2001 6:18 AM
Subject: [PATCH] mpm_winnt -- check for connection and then update context

> Hi,
> The WIN2K and WINXP logs something like :
> (32557)Socket is not connected: setsockopt(SO_UPDATE_ACCEPT_CONTEXT)
> failed.
> For almost each connection made.
> Although this is not a fatal error, the setsockopt has no sense on the
> socket that hasn't been accepted.
> The patch calls the getsockopt and checks whether a connection has been
> accepted and then calls the setsockopt to set the
> MT.

View raw message