Received: by taz.hyperreal.com (8.8.4/V2.0) id PAA23286; Thu, 20 Feb 1997 15:43:04 -0800 (PST) Received: from paris.ics.uci.edu by taz.hyperreal.com (8.8.4/V2.0) with SMTP id PAA23131; Thu, 20 Feb 1997 15:42:52 -0800 (PST) Received: from kiwi.ics.uci.edu by paris.ics.uci.edu id aa28436; 20 Feb 97 14:48 PST To: new-httpd@hyperreal.com Subject: Re: [BUG]: "lingering_close errors from proxy requests" on FreeBSD (fwd) In-reply-to: Your message of "Thu, 20 Feb 1997 21:58:38 GMT." Date: Thu, 20 Feb 1997 14:48:30 -0800 From: "Roy T. Fielding" Message-ID: <9702201448.aa28436@paris.ics.uci.edu> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Already been fixed in 1.2b7-dev. ....Roy In message , Rob Ha rtill writes: > >not acked. > >---------- Forwarded message ---------- >Date: Thu Feb 20 13:17:23 1997 >From: archie@whistle.com >To: apache-bugs%apache.org@organic.com >Subject: [BUG]: "lingering_close errors from proxy requests" on FreeBSD > >Submitter: archie@whistle.com >Operating system: FreeBSD, version: 2.2 >Version of Apache Used: 1.2b6 >Extra Modules used: mod_proxy >URL exhibiting problem: > >Symptoms: >-- >When reloading a page that is in the proxy cache, >the page reloads normally but the following error >messages are logged repeatedly (seems like about >one per HTTP request): > > shutdown: Invalid argument > - lingering_close > shutdown: Invalid argument > - lingering_close > shutdown: Invalid argument > - lingering_close > [ .. etc .. ] > >I did a little gdb tracing, etc., and the function >lingering_close() is attempting to close a socket >which is already closed apparently. This is the >socket that was connected to the client. > >-- > >Backtrace: >-- >Error occurs here: > >(gdb) where >#0 0x80a3561 in kill () >#1 0x80a2e34 in abort () >#2 0x80732f2 in __assert () >#3 0x2576 in lingering_close (r=0x4f084) at http_main.c:339 >#4 0x3d10 in child_main (child_num_arg=0) at http_main.c:1716 >#5 0x3d72 in make_child (server_conf=0x38034, child_num=0) at http_main.c:173 >1 >#6 0x4594 in standalone_main (argc=4, argv=0xefbfd8c8) at http_main.c:1998 >#7 0x4910 in main (argc=4, argv=0xefbfd8c8) at http_main.c:2116 > >Here is some more info at this point: > >Breakpoint 1, lingering_close (r=0x4f084) at http_main.c:334 >http_main.c:334: No such file or directory. >(gdb) p *r >$1 = {pool = 0x3b00c, connection = 0x4f01c, server = 0x38034, next = 0x0, > prev = 0x0, main = 0x0, > the_request = 0x3b48c "GET http://207.76.204.2/ HTTP/1.0", assbackwards = 0, > > proxyreq = 1, header_only = 0, protocol = 0x3b51c "HTTP/1.0", > proto_num = 1000, hostname = 0x3b63c "207.76.204.2", hostlen = 19, > request_time = 856471417, status_line = 0x5301c "304 Not Modified", > status = 304, method = 0x3b4b4 "GET", method_number = 0, allowed = 0, > sent_bodyct = 1, bytes_sent = 0, chunked = 0, byterange = 0, boundary = 0x0, > > range = 0x0, clength = 0, remaining = 0, read_length = 0, read_body = 1, > read_chunked = 0, headers_in = 0x3b034, headers_out = 0x3b384, > err_headers_out = 0x3b3c4, subprocess_env = 0x3b1dc, notes = 0x3b404, > content_type = 0x0, handler = 0x1e07f "proxy-server", > content_encoding = 0x0, content_language = 0x0, content_languages = 0x0, > no_cache = 0, no_local_copy = 0, uri = 0x3b504 "http://207.76.204.2/", > filename = 0x3b93c "proxy:http://207.76.204.2/", path_info = 0x0, > args = 0x0, finfo = {st_dev = 0, st_ino = 0, st_mode = 0, st_nlink = 0, > st_uid = 0, st_gid = 0, st_rdev = 0, st_atimespec = {tv_sec = 0, > tv_nsec = 0}, st_mtimespec = {tv_sec = 0, tv_nsec = 0}, st_ctimespec = { > tv_sec = 0, tv_nsec = 0}, st_size = 0x0000000000000000, > st_blocks = 0x0000000000000000, st_blksize = 0, st_flags = 0, st_gen = 0, > st_lspare = 0, st_qspare = {0x0000000000000000, 0x0000000000000000}}, > per_dir_config = 0x38b2c, request_config = 0x3b444, htaccess = 0x0} >(gdb) p *r->connection->client >$2 = {flags = 3, inptr = 0x4217e "\003", incnt = 0, outcnt = 0, > inbase = 0x4206c "GET http://207.76.204.2/ HTTP/1.0\r\nIf-Modified-Since: Th >ursday, 20-Feb-97 03:25:06 GMT; length=8071\r\nProxy-Connection: Keep-Alive\r\ >nUser-Agent: Mozilla/3.01 (Win95; I)\r\nPragma: no-cache\r\nHost: 207.76.2"... >, > outbase = 0x4e00c "HTTP/1.0 304 Not Modified\r\nDate: Thu, 20 Feb 1997 20:43 >:50 GMT\r\nServer: Apache/1.0.5\r\n\r\n", bufsiz = 4096, error = 0, > error_data = 0x7473694c, bytes_sent = 0, pool = 0x4200c, fd = 9, fd_in = 9} >(gdb) quit > >-- >