Bug 17355 - setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
Summary: setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
Status: CLOSED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.0.45
Hardware: PC All
: P3 major with 4 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://localhost
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 03:55 UTC by Sridhar Panigrahi
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sridhar Panigrahi 2003-02-25 03:55:31 UTC
error.log recorded the following error with the URL "http://localhost". 

[warn] (730038)An operation was attempted on something that is not a socket. 
: setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
Comment 1 David Bowdoin 2003-03-04 18:14:52 UTC
I am getting the same error, Using Apache HTTP Server 2.0.44 on win2k, using 
the forward proxy, the error.log file gets filled with"

[Tue Mar 04 10:05:23 2003] [warn] (OS 10038)An operation was attempted on 
something that is not a socket.  : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.

The proxy server runs fine for a few hours, and then stops responding. (The 
webserver continues to work.

I am using a minimal proxy configuration of:

ProxyRequests On
<Proxy *>
    Order deny,allow
    Deny from all
    Allow from 10.10.10.0/255.255.255.0 192.168.1.0/255.255.255.0
</Proxy>
Comment 2 Andreas Goetz 2003-05-07 12:42:55 UTC
I'm seeing similiar problems with Apache 2.0.45 on W2K, no firewall, no proxy. 
Running PHP and apache regularly crashes:

[Wed May 07 14:32:51 2003] [notice] Child 3260: Process exiting because it 
reached MaxRequestsPerChild. Signaling the parent to restart a new child 
process.
[Wed May 07 14:32:51 2003] [notice] Parent: Received restart signal -- 
Restarting the server.
[Wed May 07 14:32:51 2003] [warn] (OS 10038)An operation was attempted on 
something that is not a socket.  : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
Comment 3 Ludovic Ma 2003-05-27 07:47:26 UTC
I have also the same problem on Apache 2.0.45 on Windows 2000 Server SP3,
configured with the follwing modules : mod_jk.c, mod_status.c, mod_setenvif.c,
mod_rewrite.c, mod_negotiation.c, mod_mime.c, mod_log_config.c, mod_info.c,
mod_include.c, mod_imap.c, mod_env.c, mod_dir.c, mod_cgi.c, mod_autoindex.c,
mod_auth.c, mod_alias.c, mod_actions.c, mod_access.c, mod_so.c, http_core.c,
mpm_winnt.c, mod_win32.c, core.c + php 4.3.2 in CGI.

On my server, the problem seems to appear when the server reach his maximum
request per child and restart the service :
[Tue May 27 08:35:48 2003] [notice] Child 8960: All worker threads have exited.
[Tue May 27 08:35:48 2003] [notice] Child 8960: Child process is exiting
[Tue May 27 09:02:58 2003] [notice] Child 3948: Process exiting because it
reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Tue May 27 09:02:58 2003] [notice] Parent: Received restart signal --
Restarting the server.
[Tue May 27 09:02:58 2003] [warn] (OS 10038)Une opération a été tentée sur autre
chose qu'un socket.  : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
[Tue May 27 09:02:58 2003] [notice] Parent: Created child process 8220
[Tue May 27 09:02:59 2003] [notice] Child 8220: Child process is running
[Tue May 27 09:02:59 2003] [notice] Child 3948: Released the start mutex
[Tue May 27 09:02:59 2003] [notice] Child 8220: Acquired the start mutex.
[Tue May 27 09:02:59 2003] [notice] Child 8220: Starting 250 worker threads.
[Tue May 27 09:03:00 2003] [notice] Child 3948: Waiting for 250 worker threads
to exit.
[Tue May 27 09:03:09 2003] [notice] Child 3948: All worker threads have exited.
... (and the same appears are repeated)

For information the error message OS 10038 is registered in this article on the
microsoft knowledge base :
http://support.microsoft.com/default.aspx?scid=kb;en-us;155738
and the list of error on sockets (i have only found this in french and for winnt4): 
http://support.microsoft.com/default.aspx?scid=kb;fr;150537

Comment 4 Joe Orton 2004-06-03 22:39:53 UTC
Upgrade to 2.0.49 and read:

http://httpd.apache.org/docs-2.0/mod/mpm_winnt.html#win32disableacceptex