httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43289] XBitHack full g+x returns zero sized response on If-Modified-Since
Date Mon, 22 Jun 2009 17:23:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43289


David Nesting <david@fastolfe.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




--- Comment #3 from David Nesting <david@fastolfe.net>  2009-06-22 10:23:31 PST ---
I'm seeing this with Debian's 2.2.11 build.  I normally sit behind a squid
proxy that auto-retries, so this problem was being masked.  I can reliably
reproduce it with a browser hitting the site directly.  Occasionally the
requests DO succeed, but most fail.  I've confirmed with tcpdump that the HTTP
server is closing the connection without sending a response.

The failures seem to be correlated only with index files with the XBitHack set.
 My strace output looks essentially identical to the other poster's.  Here's a
diff between a 'good' request and a 'bad' request:

 getdents64(18, /* 0 entries */, 4096)   = 0
 close(18)                               = 0
 open("/www/fastolfe.net/htdocs/2009/index.html", O_RDONLY|O_LARGEFILE) = 18
-mmap2(NULL, 13, PROT_READ, MAP_SHARED, 18, 0) = 0xb7f6c000
-writev(15, [{"HTTP/1.1 200 OK\r\nDate: Mon, 22 Ju"..., 342}, {"Test
content\n"..., 13}], 2) = 355
-munmap(0xb7f6c000, 13)                  = 0
-write(16, "216.239.45.4 - - - [22/Jun/2009:0"..., 188) = 188
+close(18)                               = 0
+read(15, 0x82ddec8, 8000)               = -1 EAGAIN (Resource temporarily
unavailable)
+write(16, "216.239.45.4 - - - [22/Jun/2009:1"..., 187) = 187
 shutdown(15, 1 /* send */)              = 0
 poll([{fd=15, events=POLLIN}], 1, 2000) = 1 ([{fd=15,
revents=POLLIN|POLLHUP}])
 read(15, ""..., 512)                    = 0
 close(15)                               = 0
 read(7, 0xbf86fb57, 1)                  = -1 EAGAIN (Resource temporarily
unavailable)
-close(18)                               = 0
-semop(10059778, 0xb7f195d4, 1)          = 0
-epoll_wait(13, {{EPOLLIN, {u32=137158752, u64=137158752}}}, 2, -1) = 1
+semop(10059778, 0xb7f195d4, 1

The bad request fails to mmap the index.html and fails to write a response
before closing the connection.

If I chmod g-x index.html, the file gets delivered reliably.

Nothing is logged to the error log, and the access log always reports a normal
304 response.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message