Page 2 of 2
Re: Two HTTP requests are issued for localhost on refresh in
Posted: Fri May 27, 2011 8:51 am
by Lekensteyn
Giorgio Maone wrote:OK, I managed to reproduce it.
It seems to happen when Firefox's own DNS cache is empty or invalid and a DNS request is sent out.
I should have fixed in
latest development build (RC10), could you confirm?
Stlll affected.
Reproduction steps:
- Create a new folder: mkdir noscript
- Launch Firefox: firefox -no-remote -profile noscript &
- Start HTTP server: python -m SimpleHTTPServer
- Install the developer build from
http://noscript.net/getit
- Restart Firefox
- Open:
http://localhost:8000/ (1 new request seen in the shell)
- Press Refresh (2 new requests seen in shell)
I noticed something weird, when holding F5, I got a message in the shell from FF:
- [NoScript] Operation is not supported while processing JS redirects
This have nothing to do with this bug, the bug is really related to ABE. Disabling ABE causes the problem to disappear.
Re: Two HTTP requests are issued for localhost on refresh in
Posted: Fri May 27, 2011 1:01 pm
by SLED
It's still not fixed for me either. I still get two requests and a broken pipe on the first request.
Code: Select all
localhost - - [27/May/2011 08:59:13] "GET / HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 50573)
Traceback (most recent call last):
File "/usr/local/products/python/2.5.2/lib/python2.5/SocketServer.py", line 222, in handle_request
self.process_request(request, client_address)
File "/usr/local/products/python/2.5.2/lib/python2.5/SocketServer.py", line 241, in process_request
self.finish_request(request, client_address)
File "/usr/local/products/python/2.5.2/lib/python2.5/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/products/python/2.5.2/lib/python2.5/SocketServer.py", line 522, in __init__
self.handle()
File "/usr/local/products/python/2.5.2/lib/python2.5/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/local/products/python/2.5.2/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/.auto_direct/_usr_local/products/python/2.5.2/lib/python2.5/SimpleHTTPServer.py", line 44, in do_GET
f = self.send_head()
File "/.auto_direct/_usr_local/products/python/2.5.2/lib/python2.5/SimpleHTTPServer.py", line 81, in send_head
return self.list_directory(path)
File "/.auto_direct/_usr_local/products/python/2.5.2/lib/python2.5/SimpleHTTPServer.py", line 134, in list_directory
self.send_response(200)
File "/usr/local/products/python/2.5.2/lib/python2.5/BaseHTTPServer.py", line 370, in send_response
self.send_header('Server', self.version_string())
File "/usr/local/products/python/2.5.2/lib/python2.5/BaseHTTPServer.py", line 376, in send_header
self.wfile.write("%s: %s\r\n" % (keyword, value))
File "/usr/local/products/python/2.5.2/lib/python2.5/socket.py", line 262, in write
self.flush()
File "/usr/local/products/python/2.5.2/lib/python2.5/socket.py", line 249, in flush
self._sock.sendall(buffer)
error: (32, 'Broken pipe')
----------------------------------------
localhost - - [27/May/2011 08:59:13] "GET / HTTP/1.1" 200 -
Re: Two HTTP requests are issued for localhost on refresh in
Posted: Sat May 28, 2011 7:14 pm
by Giorgio Maone
OK, even though I couldn't reproduce anymore, I've removed the only possible cause at its root in
latest development build rc14.
Please confirm the fix, if possible.
Thank you.
Re: Two HTTP requests are issued for localhost on refresh in
Posted: Sat May 28, 2011 7:59 pm
by Lekensteyn
I can confirm that the latest development version (2.1.0.6rc14) does not contain the bug.
Tested according my previous post (1) and the Webconsole with Show request/response headers on (2)
Re: Two HTTP requests are issued for localhost on refresh in
Posted: Wed Jun 01, 2011 1:20 pm
by SLED
Sorry for the delay. I've been out of the office and hadn't had a chance to confirm. It's now working. Thanks for looking into it.