Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 43289] XBitHack full g+x returns zero sized response on If-Modified-Since

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Jun 22, 2009, 10:23 AM

Post #1 of 2 (184 views)
Permalink
[Bug 43289] XBitHack full g+x returns zero sized response on If-Modified-Since

https://issues.apache.org/bugzilla/show_bug.cgi?id=43289


David Nesting <david[at]fastolfe.net> changed:

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




--- Comment #3 from David Nesting <david[at]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[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org


bugzilla at apache

Jun 22, 2009, 3:24 PM

Post #2 of 2 (157 views)
Permalink
[Bug 43289] XBitHack full g+x returns zero sized response on If-Modified-Since [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=43289


David Nesting <david[at]fastolfe.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |david[at]fastolfe.net




--- Comment #4 from David Nesting <david[at]fastolfe.net> 2009-06-22 15:24:44 PST ---
Note that I am also using MultiViews, so it might be a multi-way interaction.

--
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[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.