Patchwork [Bug,3795] New: test-http-proxy sometimes fail

login
register
mail settings
Submitter mercurial-bugs@selenic.com
Date Jan. 31, 2013, 2:30 a.m.
Message ID <bug-3795-285@http.bz.selenic.com/>
Download mbox | patch
Permalink /patch/772/
State Not Applicable
Headers show

Comments

mercurial-bugs@selenic.com - Jan. 31, 2013, 2:30 a.m.
http://bz.selenic.com/show_bug.cgi?id=3795

          Priority: normal
            Bug ID: 3795
                CC: mercurial-devel@selenic.com
          Assignee: bugzilla@selenic.com
           Summary: test-http-proxy sometimes fail
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: foozy@lares.dti.ne.jp
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5-rc
         Component: Mercurial
           Product: Mercurial

on Linux vm-debian 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64
GNU/Linux

_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - - x-hgarg-1:namespace=phases
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - - x-hgarg-1:namespace=phases
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks
+

ERROR: /home/fujiwara/repos/hg/tests/test-http-proxy.t output changed

Patch

--- /home/fujiwara/repos/hg/tests/test-http-proxy.t
+++ /home/fujiwara/repos/hg/tests/test-http-proxy.t.err
@@ -100,26 +100,188 @@ 
   $ cat proxy.log
   * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
(glob)
   * - - [*] "GET http://localhost:$HGPORT/?cmd=branchmap HTTP/1.1" - - (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=stream_out HTTP/1.1" - - (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=phases (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=phases (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=phases (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
(glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=phases (glob)
-  * - - [*] "GET http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks (glob)
-
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=stream_out HTTP/1.1" - -
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - - x-hgarg-1:namespace=phases
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:32] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=getbundle HTTP/1.1" - -
x-hgarg-1:common=0000000000000000000000000000000000000000&heads=83180e7845de420a1bb46896fd5fe05294f8d629
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - - x-hgarg-1:namespace=phases
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in
_read_write
+      data = i.recv(8192)
+  error: [Errno 104] Connection reset by peer
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=listkeys HTTP/1.1" - -
x-hgarg-1:namespace=bookmarks
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=capabilities HTTP/1.1" - -
+  localhost - - [31/Jan/2013 06:40:33] "GET
http://localhost:$HGPORT/?cmd=batch HTTP/1.1" - -
x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
+  Traceback (most recent call last):
+    File "/usr/lib/python2.6/SocketServer.py", line 560, in
process_request_thread
+      self.finish_request(request, client_address)
+    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
+      self.RequestHandlerClass(request, client_address, self)
+    File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
+      self.handle()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 32, in handle
+      self.__base_handle()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
+      self.handle_one_request()
+    File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in
handle_one_request
+      method()
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 89, in do_GET
+      self._read_write(soc)
+    File "/home/fujiwara/repos/hg/tests/tinyproxy.py", line 110, in