Two HTTP requests are issued for localhost on refresh in FF4

Bug reports and enhancement requests
Lekensteyn
Junior Member
Posts: 31
Joined: Thu May 19, 2011 12:01 pm

Re: Two HTTP requests are issued for localhost on refresh in

Post 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.
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
SLED
Posts: 8
Joined: Tue May 24, 2011 8:13 pm

Re: Two HTTP requests are issued for localhost on refresh in

Post 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 -
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Two HTTP requests are issued for localhost on refresh in

Post 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.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Lekensteyn
Junior Member
Posts: 31
Joined: Thu May 19, 2011 12:01 pm

Re: Two HTTP requests are issued for localhost on refresh in

Post 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)
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
SLED
Posts: 8
Joined: Tue May 24, 2011 8:13 pm

Re: Two HTTP requests are issued for localhost on refresh in

Post 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.
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Locked