tests/test-http-bad-server.t
changeset 41466 4d5aae86c9bd
parent 41465 33560f3bbcd3
child 41467 1016b81fa43e
equal deleted inserted replaced
41465:33560f3bbcd3 41466:4d5aae86c9bd
   114   readline(177 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   114   readline(177 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   115   readline(150 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   115   readline(150 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   116   readline(115 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   116   readline(115 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   117   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   117   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   118   readline(* from *) -> (2) \r\n (glob)
   118   readline(* from *) -> (2) \r\n (glob)
   119   write(36) -> HTTP/1.1 200 Script output follows\r\n
   119   sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   120   write(23) -> Server: badhttpserver\r\n
   120   sendall(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   121   write(37) -> Date: $HTTP_DATE$\r\n
   121   write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   122   write(41) -> Content-Type: application/mercurial-0.1\r\n
   122   write(23) -> Server: badhttpserver\r\n (no-py3 !)
   123   write(21) -> Content-Length: 450\r\n
   123   write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !)
   124   write(2) -> \r\n
   124   write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   125   write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   125   write(21) -> Content-Length: 450\r\n (no-py3 !)
       
   126   write(2) -> \r\n (no-py3 !)
       
   127   write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   126   readline(4? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
   128   readline(4? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
   127   readline(1? from *) -> (1?) Accept-Encoding* (glob)
   129   readline(1? from *) -> (1?) Accept-Encoding* (glob)
   128   read limit reached; closing socket
   130   read limit reached; closing socket
   129   readline(223 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   131   readline(223 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   130   readline(197 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   132   readline(197 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   155   readline(275 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   157   readline(275 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   156   readline(248 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   158   readline(248 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   157   readline(213 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   159   readline(213 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   158   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   160   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   159   readline(* from *) -> (2) \r\n (glob)
   161   readline(* from *) -> (2) \r\n (glob)
   160   write(36) -> HTTP/1.1 200 Script output follows\r\n
   162   sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   161   write(23) -> Server: badhttpserver\r\n
   163   sendall(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   162   write(37) -> Date: $HTTP_DATE$\r\n
   164   write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   163   write(41) -> Content-Type: application/mercurial-0.1\r\n
   165   write(23) -> Server: badhttpserver\r\n (no-py3 !)
   164   write(21) -> Content-Length: 450\r\n
   166   write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !)
   165   write(2) -> \r\n
   167   write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   166   write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   168   write(21) -> Content-Length: 450\r\n (no-py3 !)
       
   169   write(2) -> \r\n (no-py3 !)
       
   170   write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   167   readline(13? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
   171   readline(13? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob)
   168   readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob)
   172   readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob)
   169   readline(8? from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   173   readline(8? from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   170   readline(5? from *) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   174   readline(5? from *) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   171   readline(1? from *) -> (1?) x-hgproto-1:* (glob)
   175   readline(1? from *) -> (1?) x-hgproto-1:* (glob)
   177   readline(194 from *) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   181   readline(194 from *) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   178   readline(133 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   182   readline(133 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   179   readline(98 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   183   readline(98 from *) -> (*) host: localhost:$HGPORT\r\n (glob)
   180   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   184   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   181   readline(* from *) -> (2) \r\n (glob)
   185   readline(* from *) -> (2) \r\n (glob)
   182   write(36) -> HTTP/1.1 200 Script output follows\r\n
   186   sendall(159) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !)
   183   write(23) -> Server: badhttpserver\r\n
   187   sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !)
   184   write(37) -> Date: $HTTP_DATE$\r\n
   188   write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   185   write(41) -> Content-Type: application/mercurial-0.1\r\n
   189   write(23) -> Server: badhttpserver\r\n (no-py3 !)
   186   write(20) -> Content-Length: 42\r\n
   190   write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !)
   187   write(2) -> \r\n
   191   write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   188   write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   192   write(20) -> Content-Length: 42\r\n (no-py3 !)
       
   193   write(2) -> \r\n (no-py3 !)
       
   194   write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !)
   189   readline(* from 65537) -> (*) GET /?cmd=getbundle HTTP* (glob)
   195   readline(* from 65537) -> (*) GET /?cmd=getbundle HTTP* (glob)
   190   read limit reached; closing socket
   196   read limit reached; closing socket
   191   readline(304 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   197   readline(304 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   192   readline(274 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   198   readline(274 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   193   readline(247 from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   199   readline(247 from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   212   readline(296 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   218   readline(296 from *) -> (27) Accept-Encoding: identity\r\n (glob)
   213   readline(269 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   219   readline(269 from *) -> (35) accept: application/mercurial-0.1\r\n (glob)
   214   readline(234 from *) -> (2?) host: localhost:$HGPORT\r\n (glob)
   220   readline(234 from *) -> (2?) host: localhost:$HGPORT\r\n (glob)
   215   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   221   readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   216   readline(* from *) -> (2) \r\n (glob)
   222   readline(* from *) -> (2) \r\n (glob)
   217   write(36) -> HTTP/1.1 200 Script output follows\r\n
   223   sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 463\r\n\r\n (py3 !)
   218   write(23) -> Server: badhttpserver\r\n
   224   sendall(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   219   write(37) -> Date: $HTTP_DATE$\r\n
   225   write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   220   write(41) -> Content-Type: application/mercurial-0.1\r\n
   226   write(23) -> Server: badhttpserver\r\n (no-py3 !)
   221   write(21) -> Content-Length: 463\r\n
   227   write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !)
   222   write(2) -> \r\n
   228   write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   223   write(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   229   write(21) -> Content-Length: 463\r\n (no-py3 !)
       
   230   write(2) -> \r\n (no-py3 !)
       
   231   write(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   224   readline(1?? from 65537) -> (27) POST /?cmd=batch HTTP/1.1\r\n (glob)
   232   readline(1?? from 65537) -> (27) POST /?cmd=batch HTTP/1.1\r\n (glob)
   225   readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob)
   233   readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob)
   226   readline(1?? from *) -> (41) content-type: application/mercurial-0.1\r\n (glob)
   234   readline(1?? from *) -> (41) content-type: application/mercurial-0.1\r\n (glob)
   227   readline(6? from *) -> (33) vary: X-HgArgs-Post,X-HgProto-1\r\n (glob)
   235   readline(6? from *) -> (33) vary: X-HgArgs-Post,X-HgProto-1\r\n (glob)
   228   readline(3? from *) -> (19) x-hgargs-post: 28\r\n (glob)
   236   readline(3? from *) -> (19) x-hgargs-post: 28\r\n (glob)
   243   read limit reached, closing socket
   251   read limit reached, closing socket
   244   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   252   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   245   Traceback (most recent call last):
   253   Traceback (most recent call last):
   246   Exception: connection closed after receiving N bytes
   254   Exception: connection closed after receiving N bytes
   247   
   255   
   248   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   256   write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !)
   249 
   257 
   250   $ rm -f error.log
   258   $ rm -f error.log
   251 
   259 
   252 Now move on to partial server responses
   260 Now move on to partial server responses
   253 
   261 
   267   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   275   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   268   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   276   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   269   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   277   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   270   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   278   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   271   readline(*) -> (2) \r\n (glob)
   279   readline(*) -> (2) \r\n (glob)
   272   write(1 from 36) -> (0) H
   280   sendall(1 from 160) -> (0) H (py3 !)
       
   281   write(1 from 36) -> (0) H (no-py3 !)
   273   write limit reached; closing socket
   282   write limit reached; closing socket
   274   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
   283   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
   275   Traceback (most recent call last):
   284   Traceback (most recent call last):
   276   Exception: connection closed after sending N bytes
   285   Exception: connection closed after sending N bytes
   277   
   286   
   278   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   287   write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !)
   279 
   288 
   280   $ rm -f error.log
   289   $ rm -f error.log
   281 
   290 
   282 Server sends an incomplete capabilities response body
   291 Server sends an incomplete capabilities response body
   283 
   292 
   296   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   305   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   297   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   306   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   298   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   307   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   299   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   308   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   300   readline(*) -> (2) \r\n (glob)
   309   readline(*) -> (2) \r\n (glob)
   301   write(36 from 36) -> (144) HTTP/1.1 200 Script output follows\r\n
   310   sendall(160 from 160) -> (20) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   302   write(23 from 23) -> (121) Server: badhttpserver\r\n
   311   sendall(20 from 450) -> (0) batch branchmap bund (py3 !)
   303   write(37 from 37) -> (84) Date: $HTTP_DATE$\r\n
   312   write(36 from 36) -> (144) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   304   write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n
   313   write(23 from 23) -> (121) Server: badhttpserver\r\n (no-py3 !)
   305   write(21 from 21) -> (22) Content-Length: 450\r\n
   314   write(37 from 37) -> (84) Date: $HTTP_DATE$\r\n (no-py3 !)
   306   write(2 from 2) -> (20) \r\n
   315   write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   307   write(20 from 450) -> (0) batch branchmap bund
   316   write(21 from 21) -> (22) Content-Length: 450\r\n (no-py3 !)
       
   317   write(2 from 2) -> (20) \r\n (no-py3 !)
       
   318   write(20 from 450) -> (0) batch branchmap bund (no-py3 !)
   308   write limit reached; closing socket
   319   write limit reached; closing socket
   309   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
   320   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
   310   Traceback (most recent call last):
   321   Traceback (most recent call last):
   311   Exception: connection closed after sending N bytes
   322   Exception: connection closed after sending N bytes
   312   
   323   
   335   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   346   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   336   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   347   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   337   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   348   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   338   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   349   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   339   readline(*) -> (2) \r\n (glob)
   350   readline(*) -> (2) \r\n (glob)
   340   write(36 from 36) -> (692) HTTP/1.1 200 Script output follows\r\n
   351   sendall(160 from 160) -> (568) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   341   write(23 from 23) -> (669) Server: badhttpserver\r\n
   352   sendall(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   342   write(37 from 37) -> (632) Date: $HTTP_DATE$\r\n
   353   write(36 from 36) -> (692) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   343   write(41 from 41) -> (591) Content-Type: application/mercurial-0.1\r\n
   354   write(23 from 23) -> (669) Server: badhttpserver\r\n (no-py3 !)
   344   write(21 from 21) -> (570) Content-Length: 450\r\n
   355   write(37 from 37) -> (632) Date: $HTTP_DATE$\r\n (no-py3 !)
   345   write(2 from 2) -> (568) \r\n
   356   write(41 from 41) -> (591) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   346   write(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   357   write(21 from 21) -> (570) Content-Length: 450\r\n (no-py3 !)
       
   358   write(2 from 2) -> (568) \r\n (no-py3 !)
       
   359   write(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   347   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   360   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   348   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   361   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   349   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   362   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   350   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   363   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   351   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   364   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   352   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   365   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   353   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   366   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   354   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   367   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   355   readline(*) -> (2) \r\n (glob)
   368   readline(*) -> (2) \r\n (glob)
   356   write(36 from 36) -> (82) HTTP/1.1 200 Script output follows\r\n
   369   sendall(118 from 159) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: applicat (py3 !)
   357   write(23 from 23) -> (59) Server: badhttpserver\r\n
   370   write(36 from 36) -> (82) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   358   write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n
   371   write(23 from 23) -> (59) Server: badhttpserver\r\n (no-py3 !)
   359   write(22 from 41) -> (0) Content-Type: applicat
   372   write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n (no-py3 !)
       
   373   write(22 from 41) -> (0) Content-Type: applicat (no-py3 !)
   360   write limit reached; closing socket
   374   write limit reached; closing socket
   361   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   375   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   362   Traceback (most recent call last):
   376   Traceback (most recent call last):
   363   Exception: connection closed after sending N bytes
   377   Exception: connection closed after sending N bytes
   364   
   378   
   365   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   379   write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !)
   366 
   380 
   367   $ rm -f error.log
   381   $ rm -f error.log
   368 
   382 
   369 Server sends an incomplete HTTP response body to batch request
   383 Server sends an incomplete HTTP response body to batch request
   370 
   384 
   387   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   401   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   388   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   402   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   389   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   403   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   390   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   404   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   391   readline(*) -> (2) \r\n (glob)
   405   readline(*) -> (2) \r\n (glob)
   392   write(36 from 36) -> (757) HTTP/1.1 200 Script output follows\r\n
   406   sendall(160 from 160) -> (633) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   393   write(23 from 23) -> (734) Server: badhttpserver\r\n
   407   sendall(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   394   write(37 from 37) -> (697) Date: $HTTP_DATE$\r\n
   408   write(36 from 36) -> (757) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   395   write(41 from 41) -> (656) Content-Type: application/mercurial-0.1\r\n
   409   write(23 from 23) -> (734) Server: badhttpserver\r\n (no-py3 !)
   396   write(21 from 21) -> (635) Content-Length: 450\r\n
   410   write(37 from 37) -> (697) Date: $HTTP_DATE$\r\n (no-py3 !)
   397   write(2 from 2) -> (633) \r\n
   411   write(41 from 41) -> (656) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   398   write(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   412   write(21 from 21) -> (635) Content-Length: 450\r\n (no-py3 !)
       
   413   write(2 from 2) -> (633) \r\n (no-py3 !)
       
   414   write(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   399   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   415   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   400   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   416   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   401   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   417   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   402   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   418   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   403   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   419   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   404   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   420   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   405   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   421   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   406   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   422   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   407   readline(*) -> (2) \r\n (glob)
   423   readline(*) -> (2) \r\n (glob)
   408   write(36 from 36) -> (147) HTTP/1.1 200 Script output follows\r\n
   424   sendall(159 from 159) -> (24) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !)
   409   write(23 from 23) -> (124) Server: badhttpserver\r\n
   425   sendall(24 from 42) -> (0) 96ee1d7354c4ad7372047672 (py3 !)
   410   write(37 from 37) -> (87) Date: $HTTP_DATE$\r\n
   426   write(36 from 36) -> (147) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   411   write(41 from 41) -> (46) Content-Type: application/mercurial-0.1\r\n
   427   write(23 from 23) -> (124) Server: badhttpserver\r\n (no-py3 !)
   412   write(20 from 20) -> (26) Content-Length: 42\r\n
   428   write(37 from 37) -> (87) Date: $HTTP_DATE$\r\n (no-py3 !)
   413   write(2 from 2) -> (24) \r\n
   429   write(41 from 41) -> (46) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   414   write(24 from 42) -> (0) 96ee1d7354c4ad7372047672
   430   write(20 from 20) -> (26) Content-Length: 42\r\n (no-py3 !)
       
   431   write(2 from 2) -> (24) \r\n (no-py3 !)
       
   432   write(24 from 42) -> (0) 96ee1d7354c4ad7372047672 (no-py3 !)
   415   write limit reached; closing socket
   433   write limit reached; closing socket
   416   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   434   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
   417   Traceback (most recent call last):
   435   Traceback (most recent call last):
   418   Exception: connection closed after sending N bytes
   436   Exception: connection closed after sending N bytes
   419   
   437   
   443   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   461   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   444   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   462   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   445   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   463   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   446   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   464   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   447   readline(*) -> (2) \r\n (glob)
   465   readline(*) -> (2) \r\n (glob)
   448   write(36 from 36) -> (904) HTTP/1.1 200 Script output follows\r\n
   466   sendall(160 from 160) -> (780) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   449   write(23 from 23) -> (881) Server: badhttpserver\r\n
   467   sendall(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   450   write(37 from 37) -> (844) Date: $HTTP_DATE$\r\n
   468   write(36 from 36) -> (904) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   451   write(41 from 41) -> (803) Content-Type: application/mercurial-0.1\r\n
   469   write(23 from 23) -> (881) Server: badhttpserver\r\n (no-py3 !)
   452   write(21 from 21) -> (782) Content-Length: 450\r\n
   470   write(37 from 37) -> (844) Date: $HTTP_DATE$\r\n (no-py3 !)
   453   write(2 from 2) -> (780) \r\n
   471   write(41 from 41) -> (803) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   454   write(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   472   write(21 from 21) -> (782) Content-Length: 450\r\n (no-py3 !)
       
   473   write(2 from 2) -> (780) \r\n (no-py3 !)
       
   474   write(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   455   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   475   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   456   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   476   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   457   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   477   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   458   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   478   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   459   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   479   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   460   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   480   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   461   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   481   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   462   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   482   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   463   readline(*) -> (2) \r\n (glob)
   483   readline(*) -> (2) \r\n (glob)
   464   write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n
   484   sendall(159 from 159) -> (171) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !)
   465   write(23 from 23) -> (271) Server: badhttpserver\r\n
   485   sendall(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !)
   466   write(37 from 37) -> (234) Date: $HTTP_DATE$\r\n
   486   write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   467   write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n
   487   write(23 from 23) -> (271) Server: badhttpserver\r\n (no-py3 !)
   468   write(20 from 20) -> (173) Content-Length: 42\r\n
   488   write(37 from 37) -> (234) Date: $HTTP_DATE$\r\n (no-py3 !)
   469   write(2 from 2) -> (171) \r\n
   489   write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   470   write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   490   write(20 from 20) -> (173) Content-Length: 42\r\n (no-py3 !)
       
   491   write(2 from 2) -> (171) \r\n (no-py3 !)
       
   492   write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !)
   471   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   493   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   472   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   494   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   473   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   495   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   474   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   496   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   475   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   497   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   476   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   498   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   477   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   499   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   478   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   500   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   479   readline(*) -> (2) \r\n (glob)
   501   readline(*) -> (2) \r\n (glob)
   480   write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n
   502   sendall(129 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercuri (py3 !)
   481   write(23 from 23) -> (70) Server: badhttpserver\r\n
   503   write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   482   write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n
   504   write(23 from 23) -> (70) Server: badhttpserver\r\n (no-py3 !)
   483   write(33 from 41) -> (0) Content-Type: application/mercuri
   505   write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n (no-py3 !)
   484   write limit reached; closing socket
   506   write(33 from 41) -> (0) Content-Type: application/mercuri (no-py3 !)
   485   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   507   write limit reached; closing socket
       
   508   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   509   Traceback (most recent call last):
       
   510   Exception: connection closed after sending N bytes
       
   511   
       
   512   write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !)
       
   513 
       
   514   $ rm -f error.log
       
   515 
       
   516 Server stops before it sends transfer encoding
       
   517 
       
   518   $ hg serve --config badserver.closeaftersendbytes=973 -p $HGPORT -d --pid-file=hg.pid -E error.log
       
   519   $ cat hg.pid > $DAEMON_PIDS
       
   520 
       
   521   $ hg clone http://localhost:$HGPORT/ clone
       
   522   requesting all changes
       
   523   abort: stream ended unexpectedly (got 0 bytes, expected 1)
       
   524   [255]
       
   525 
       
   526   $ killdaemons.py $DAEMON_PIDS
       
   527 
       
   528 #if py3
       
   529   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -3
       
   530   Traceback (most recent call last):
       
   531   Exception: connection closed after sending N bytes
       
   532   
       
   533 
       
   534 #else
       
   535   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4
   486   Traceback (most recent call last):
   536   Traceback (most recent call last):
   487   Exception: connection closed after sending N bytes
   537   Exception: connection closed after sending N bytes
   488   
   538   
   489   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   539   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   490 
   540 #endif
   491   $ rm -f error.log
       
   492 
       
   493 Server stops before it sends transfer encoding
       
   494 
       
   495   $ hg serve --config badserver.closeaftersendbytes=973 -p $HGPORT -d --pid-file=hg.pid -E error.log
       
   496   $ cat hg.pid > $DAEMON_PIDS
       
   497 
       
   498   $ hg clone http://localhost:$HGPORT/ clone
       
   499   requesting all changes
       
   500   abort: stream ended unexpectedly (got 0 bytes, expected 1)
       
   501   [255]
       
   502 
       
   503   $ killdaemons.py $DAEMON_PIDS
       
   504 
       
   505   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4
       
   506   Traceback (most recent call last):
       
   507   Exception: connection closed after sending N bytes
       
   508   
       
   509   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
       
   510 
   541 
   511   $ rm -f error.log
   542   $ rm -f error.log
   512 
   543 
   513 Server sends empty HTTP body for getbundle
   544 Server sends empty HTTP body for getbundle
   514 
   545 
   528   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   559   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   529   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   560   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   530   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   561   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   531   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   562   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   532   readline(*) -> (2) \r\n (glob)
   563   readline(*) -> (2) \r\n (glob)
   533   write(36 from 36) -> (942) HTTP/1.1 200 Script output follows\r\n
   564   sendall(160 from 160) -> (818) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   534   write(23 from 23) -> (919) Server: badhttpserver\r\n
   565   sendall(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   535   write(37 from 37) -> (882) Date: $HTTP_DATE$\r\n
   566   write(36 from 36) -> (942) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   536   write(41 from 41) -> (841) Content-Type: application/mercurial-0.1\r\n
   567   write(23 from 23) -> (919) Server: badhttpserver\r\n (no-py3 !)
   537   write(21 from 21) -> (820) Content-Length: 450\r\n
   568   write(37 from 37) -> (882) Date: $HTTP_DATE$\r\n (no-py3 !)
   538   write(2 from 2) -> (818) \r\n
   569   write(41 from 41) -> (841) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   539   write(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   570   write(21 from 21) -> (820) Content-Length: 450\r\n (no-py3 !)
       
   571   write(2 from 2) -> (818) \r\n (no-py3 !)
       
   572   write(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   540   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   573   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   541   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   574   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   542   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   575   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   543   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   576   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   544   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   577   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   545   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   578   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   546   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   579   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   547   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   580   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   548   readline(*) -> (2) \r\n (glob)
   581   readline(*) -> (2) \r\n (glob)
   549   write(36 from 36) -> (332) HTTP/1.1 200 Script output follows\r\n
   582   sendall(159 from 159) -> (209) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !)
   550   write(23 from 23) -> (309) Server: badhttpserver\r\n
   583   sendall(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !)
   551   write(37 from 37) -> (272) Date: $HTTP_DATE$\r\n
   584   write(36 from 36) -> (332) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   552   write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n
   585   write(23 from 23) -> (309) Server: badhttpserver\r\n (no-py3 !)
   553   write(20 from 20) -> (211) Content-Length: 42\r\n
   586   write(37 from 37) -> (272) Date: $HTTP_DATE$\r\n (no-py3 !)
   554   write(2 from 2) -> (209) \r\n
   587   write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   555   write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   588   write(20 from 20) -> (211) Content-Length: 42\r\n (no-py3 !)
       
   589   write(2 from 2) -> (209) \r\n (no-py3 !)
       
   590   write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !)
   556   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   591   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   557   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   592   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   558   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   593   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   559   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   594   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   560   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   595   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   561   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   596   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   562   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   597   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   563   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   598   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   564   readline(*) -> (2) \r\n (glob)
   599   readline(*) -> (2) \r\n (glob)
   565   write(36 from 36) -> (131) HTTP/1.1 200 Script output follows\r\n
   600   sendall(167 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   566   write(23 from 23) -> (108) Server: badhttpserver\r\n
   601   write(36 from 36) -> (131) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   567   write(37 from 37) -> (71) Date: $HTTP_DATE$\r\n
   602   write(23 from 23) -> (108) Server: badhttpserver\r\n (no-py3 !)
   568   write(41 from 41) -> (30) Content-Type: application/mercurial-0.2\r\n
   603   write(37 from 37) -> (71) Date: $HTTP_DATE$\r\n (no-py3 !)
   569   write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n
   604   write(41 from 41) -> (30) Content-Type: application/mercurial-0.2\r\n (no-py3 !)
   570   write(2 from 2) -> (0) \r\n
   605   write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n (no-py3 !)
   571   write limit reached; closing socket
   606   write(2 from 2) -> (0) \r\n (no-py3 !)
   572   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   607   write limit reached; closing socket
   573   Traceback (most recent call last):
   608   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   574   Exception: connection closed after sending N bytes
   609   Traceback (most recent call last):
   575   
   610   Exception: connection closed after sending N bytes
   576   write(36) -> HTTP/1.1 500 Internal Server Error\r\n
   611   
       
   612   write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !)
   577 
   613 
   578   $ rm -f error.log
   614   $ rm -f error.log
   579 
   615 
   580 Server sends partial compression string
   616 Server sends partial compression string
   581 
   617 
   595   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   631   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   596   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   632   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   597   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   633   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   598   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   634   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   599   readline(*) -> (2) \r\n (glob)
   635   readline(*) -> (2) \r\n (glob)
   600   write(36 from 36) -> (966) HTTP/1.1 200 Script output follows\r\n
   636   sendall(160 from 160) -> (842) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !)
   601   write(23 from 23) -> (943) Server: badhttpserver\r\n
   637   sendall(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !)
   602   write(37 from 37) -> (906) Date: $HTTP_DATE$\r\n
   638   write(36 from 36) -> (966) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   603   write(41 from 41) -> (865) Content-Type: application/mercurial-0.1\r\n
   639   write(23 from 23) -> (943) Server: badhttpserver\r\n (no-py3 !)
   604   write(21 from 21) -> (844) Content-Length: 450\r\n
   640   write(37 from 37) -> (906) Date: $HTTP_DATE$\r\n (no-py3 !)
   605   write(2 from 2) -> (842) \r\n
   641   write(41 from 41) -> (865) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   606   write(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   642   write(21 from 21) -> (844) Content-Length: 450\r\n (no-py3 !)
       
   643   write(2 from 2) -> (842) \r\n (no-py3 !)
       
   644   write(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !)
   607   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   645   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   608   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   646   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   609   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   647   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   610   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   648   readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob)
   611   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   649   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   612   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   650   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   613   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   651   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   614   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   652   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   615   readline(*) -> (2) \r\n (glob)
   653   readline(*) -> (2) \r\n (glob)
   616   write(36 from 36) -> (356) HTTP/1.1 200 Script output follows\r\n
   654   sendall(159 from 159) -> (233) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !)
   617   write(23 from 23) -> (333) Server: badhttpserver\r\n
   655   sendall(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !)
   618   write(37 from 37) -> (296) Date: $HTTP_DATE$\r\n
   656   write(36 from 36) -> (356) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   619   write(41 from 41) -> (255) Content-Type: application/mercurial-0.1\r\n
   657   write(23 from 23) -> (333) Server: badhttpserver\r\n (no-py3 !)
   620   write(20 from 20) -> (235) Content-Length: 42\r\n
   658   write(37 from 37) -> (296) Date: $HTTP_DATE$\r\n (no-py3 !)
   621   write(2 from 2) -> (233) \r\n
   659   write(41 from 41) -> (255) Content-Type: application/mercurial-0.1\r\n (no-py3 !)
   622   write(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   660   write(20 from 20) -> (235) Content-Length: 42\r\n (no-py3 !)
       
   661   write(2 from 2) -> (233) \r\n (no-py3 !)
       
   662   write(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !)
   623   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   663   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   624   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   664   readline(*) -> (27) Accept-Encoding: identity\r\n (glob)
   625   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   665   readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob)
   626   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   666   readline(*) -> (461) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob)
   627   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   667   readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob)
   628   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   668   readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob)
   629   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   669   readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob)
   630   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   670   readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob)
   631   readline(*) -> (2) \r\n (glob)
   671   readline(*) -> (2) \r\n (glob)
   632   write(36 from 36) -> (155) HTTP/1.1 200 Script output follows\r\n
   672   sendall(167 from 167) -> (24) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   633   write(23 from 23) -> (132) Server: badhttpserver\r\n
   673   sendall(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc) (py3 !)
   634   write(37 from 37) -> (95) Date: $HTTP_DATE$\r\n
   674   sendall(9 from 9) -> (9) 4\r\nnone\r\n (py3 !)
   635   write(41 from 41) -> (54) Content-Type: application/mercurial-0.2\r\n
   675   sendall(9 from 9) -> (0) 4\r\nHG20\r\n (py3 !)
   636   write(28 from 28) -> (26) Transfer-Encoding: chunked\r\n
   676   write(36 from 36) -> (155) HTTP/1.1 200 Script output follows\r\n (no-py3 !)
   637   write(2 from 2) -> (24) \r\n
   677   write(23 from 23) -> (132) Server: badhttpserver\r\n (no-py3 !)
   638   write(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc)
   678   write(37 from 37) -> (95) Date: $HTTP_DATE$\r\n (no-py3 !)
   639   write(9 from 9) -> (9) 4\r\nnone\r\n
   679   write(41 from 41) -> (54) Content-Type: application/mercurial-0.2\r\n (no-py3 !)
   640   write(9 from 9) -> (0) 4\r\nHG20\r\n
   680   write(28 from 28) -> (26) Transfer-Encoding: chunked\r\n (no-py3 !)
   641   write limit reached; closing socket
   681   write(2 from 2) -> (24) \r\n (no-py3 !)
   642   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   682   write(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc) (no-py3 !)
   643   Traceback (most recent call last):
   683   write(9 from 9) -> (9) 4\r\nnone\r\n (no-py3 !)
   644   Exception: connection closed after sending N bytes
   684   write(9 from 9) -> (0) 4\r\nHG20\r\n (no-py3 !)
   645   
   685   write limit reached; closing socket
   646   write(27) -> 15\r\nInternal Server Error\r\n
   686   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   687   Traceback (most recent call last):
       
   688   Exception: connection closed after sending N bytes
       
   689   
       
   690   write(27) -> 15\r\nInternal Server Error\r\n (no-py3 !)
   647 
   691 
   648   $ rm -f error.log
   692   $ rm -f error.log
   649 
   693 
   650 Server sends partial bundle2 header magic
   694 Server sends partial bundle2 header magic
   651 
   695 
   652   $ hg serve --config badserver.closeaftersendbytes=999 -p $HGPORT -d --pid-file=hg.pid -E error.log
   696   $ hg serve --config badserver.closeaftersendbytes=999 -p $HGPORT -d --pid-file=hg.pid -E error.log
   653   $ cat hg.pid > $DAEMON_PIDS
   697   $ cat hg.pid > $DAEMON_PIDS
   654 
   698 
   655   $ hg clone http://localhost:$HGPORT/ clone
   699   $ hg clone http://localhost:$HGPORT/ clone
   656   requesting all changes
   700   requesting all changes
   657   abort: HTTP request error (incomplete response; expected 4 bytes got 3)
   701   abort: HTTP request error (incomplete response) (py3 !)
       
   702   abort: HTTP request error (incomplete response; expected 4 bytes got 3) (no-py3 !)
   658   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   703   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   659   [255]
   704   [255]
   660 
   705 
   661   $ killdaemons.py $DAEMON_PIDS
   706   $ killdaemons.py $DAEMON_PIDS
   662 
   707 
       
   708 #if py3
       
   709   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -9
       
   710   sendall(167 from 167) -> (21) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   711   sendall(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
       
   712   sendall(9 from 9) -> (6) 4\r\nnone\r\n
       
   713   sendall(6 from 9) -> (0) 4\r\nHG2
       
   714   write limit reached; closing socket
       
   715   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   716   Traceback (most recent call last):
       
   717   Exception: connection closed after sending N bytes
       
   718   
       
   719 
       
   720 #else
   663   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
   721   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
   664   write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n
   722   write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n
   665   write(2 from 2) -> (21) \r\n
   723   write(2 from 2) -> (21) \r\n
   666   write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
   724   write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
   667   write(9 from 9) -> (6) 4\r\nnone\r\n
   725   write(9 from 9) -> (6) 4\r\nnone\r\n
   670   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   728   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   671   Traceback (most recent call last):
   729   Traceback (most recent call last):
   672   Exception: connection closed after sending N bytes
   730   Exception: connection closed after sending N bytes
   673   
   731   
   674   write(27) -> 15\r\nInternal Server Error\r\n
   732   write(27) -> 15\r\nInternal Server Error\r\n
       
   733 #endif
   675 
   734 
   676   $ rm -f error.log
   735   $ rm -f error.log
   677 
   736 
   678 Server sends incomplete bundle2 stream params length
   737 Server sends incomplete bundle2 stream params length
   679 
   738 
   680   $ hg serve --config badserver.closeaftersendbytes=1008 -p $HGPORT -d --pid-file=hg.pid -E error.log
   739   $ hg serve --config badserver.closeaftersendbytes=1008 -p $HGPORT -d --pid-file=hg.pid -E error.log
   681   $ cat hg.pid > $DAEMON_PIDS
   740   $ cat hg.pid > $DAEMON_PIDS
   682 
   741 
   683   $ hg clone http://localhost:$HGPORT/ clone
   742   $ hg clone http://localhost:$HGPORT/ clone
   684   requesting all changes
   743   requesting all changes
   685   abort: HTTP request error (incomplete response; expected 4 bytes got 3)
   744   abort: HTTP request error (incomplete response) (py3 !)
       
   745   abort: HTTP request error (incomplete response; expected 4 bytes got 3) (no-py3 !)
   686   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   746   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   687   [255]
   747   [255]
   688 
   748 
   689   $ killdaemons.py $DAEMON_PIDS
   749   $ killdaemons.py $DAEMON_PIDS
   690 
   750 
       
   751 #if py3
       
   752   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10
       
   753   sendall(167 from 167) -> (30) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   754   sendall(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
       
   755   sendall(9 from 9) -> (15) 4\r\nnone\r\n
       
   756   sendall(9 from 9) -> (6) 4\r\nHG20\r\n
       
   757   sendall(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
       
   758   write limit reached; closing socket
       
   759   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   760   Traceback (most recent call last):
       
   761   Exception: connection closed after sending N bytes
       
   762   
       
   763 
       
   764 #else
   691   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   765   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   692   write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n
   766   write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n
   693   write(2 from 2) -> (30) \r\n
   767   write(2 from 2) -> (30) \r\n
   694   write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
   768   write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
   695   write(9 from 9) -> (15) 4\r\nnone\r\n
   769   write(9 from 9) -> (15) 4\r\nnone\r\n
   699   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   773   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   700   Traceback (most recent call last):
   774   Traceback (most recent call last):
   701   Exception: connection closed after sending N bytes
   775   Exception: connection closed after sending N bytes
   702   
   776   
   703   write(27) -> 15\r\nInternal Server Error\r\n
   777   write(27) -> 15\r\nInternal Server Error\r\n
       
   778 #endif
   704 
   779 
   705   $ rm -f error.log
   780   $ rm -f error.log
   706 
   781 
   707 Servers stops after bundle2 stream params header
   782 Servers stops after bundle2 stream params header
   708 
   783 
   715   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   790   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   716   [255]
   791   [255]
   717 
   792 
   718   $ killdaemons.py $DAEMON_PIDS
   793   $ killdaemons.py $DAEMON_PIDS
   719 
   794 
       
   795 #if py3
       
   796   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10
       
   797   sendall(167 from 167) -> (33) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   798   sendall(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
       
   799   sendall(9 from 9) -> (18) 4\r\nnone\r\n
       
   800   sendall(9 from 9) -> (9) 4\r\nHG20\r\n
       
   801   sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
   802   write limit reached; closing socket
       
   803   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   804   Traceback (most recent call last):
       
   805   Exception: connection closed after sending N bytes
       
   806   
       
   807 
       
   808 #else
   720   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   809   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   721   write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n
   810   write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n
   722   write(2 from 2) -> (33) \r\n
   811   write(2 from 2) -> (33) \r\n
   723   write(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
   812   write(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
   724   write(9 from 9) -> (18) 4\r\nnone\r\n
   813   write(9 from 9) -> (18) 4\r\nnone\r\n
   728   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   817   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   729   Traceback (most recent call last):
   818   Traceback (most recent call last):
   730   Exception: connection closed after sending N bytes
   819   Exception: connection closed after sending N bytes
   731   
   820   
   732   write(27) -> 15\r\nInternal Server Error\r\n
   821   write(27) -> 15\r\nInternal Server Error\r\n
       
   822 #endif
   733 
   823 
   734   $ rm -f error.log
   824   $ rm -f error.log
   735 
   825 
   736 Server stops sending after bundle2 part header length
   826 Server stops sending after bundle2 part header length
   737 
   827 
   743   abort: HTTP request error (incomplete response)
   833   abort: HTTP request error (incomplete response)
   744   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   834   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   745   [255]
   835   [255]
   746 
   836 
   747   $ killdaemons.py $DAEMON_PIDS
   837   $ killdaemons.py $DAEMON_PIDS
       
   838 
       
   839 #if py3
       
   840   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
       
   841   sendall(167 from 167) -> (42) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   842   sendall(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
       
   843   sendall(9 from 9) -> (27) 4\r\nnone\r\n
       
   844   sendall(9 from 9) -> (18) 4\r\nHG20\r\n
       
   845   sendall(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
   846   sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
   847   write limit reached; closing socket
       
   848   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   849   Traceback (most recent call last):
       
   850   Exception: connection closed after sending N bytes
       
   851   
       
   852 
       
   853 #else
   748 
   854 
   749   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
   855   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
   750   write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n
   856   write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n
   751   write(2 from 2) -> (42) \r\n
   857   write(2 from 2) -> (42) \r\n
   752   write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
   858   write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
   758   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   864   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   759   Traceback (most recent call last):
   865   Traceback (most recent call last):
   760   Exception: connection closed after sending N bytes
   866   Exception: connection closed after sending N bytes
   761   
   867   
   762   write(27) -> 15\r\nInternal Server Error\r\n
   868   write(27) -> 15\r\nInternal Server Error\r\n
       
   869 #endif
   763 
   870 
   764   $ rm -f error.log
   871   $ rm -f error.log
   765 
   872 
   766 Server stops sending after bundle2 part header
   873 Server stops sending after bundle2 part header
   767 
   874 
   777   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   884   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   778   [255]
   885   [255]
   779 
   886 
   780   $ killdaemons.py $DAEMON_PIDS
   887   $ killdaemons.py $DAEMON_PIDS
   781 
   888 
       
   889 #if py3
       
   890   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
       
   891   sendall(167 from 167) -> (89) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   892   sendall(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
       
   893   sendall(9 from 9) -> (74) 4\r\nnone\r\n
       
   894   sendall(9 from 9) -> (65) 4\r\nHG20\r\n
       
   895   sendall(9 from 9) -> (56) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
   896   sendall(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
   897   sendall(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
   898   write limit reached; closing socket
       
   899   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   900   Traceback (most recent call last):
       
   901   Exception: connection closed after sending N bytes
       
   902   
       
   903 
       
   904 #else
   782   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
   905   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
   783   write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n
   906   write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n
   784   write(2 from 2) -> (89) \r\n
   907   write(2 from 2) -> (89) \r\n
   785   write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
   908   write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
   786   write(9 from 9) -> (74) 4\r\nnone\r\n
   909   write(9 from 9) -> (74) 4\r\nnone\r\n
   792   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   915   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   793   Traceback (most recent call last):
   916   Traceback (most recent call last):
   794   Exception: connection closed after sending N bytes
   917   Exception: connection closed after sending N bytes
   795   
   918   
   796   write(27) -> 15\r\nInternal Server Error\r\n
   919   write(27) -> 15\r\nInternal Server Error\r\n
       
   920 #endif
   797 
   921 
   798   $ rm -f error.log
   922   $ rm -f error.log
   799 
   923 
   800 Server stops after bundle2 part payload chunk size
   924 Server stops after bundle2 part payload chunk size
   801 
   925 
   805   $ hg clone http://localhost:$HGPORT/ clone
   929   $ hg clone http://localhost:$HGPORT/ clone
   806   requesting all changes
   930   requesting all changes
   807   adding changesets
   931   adding changesets
   808   transaction abort!
   932   transaction abort!
   809   rollback completed
   933   rollback completed
   810   abort: HTTP request error (incomplete response; expected 466 bytes got 7)
   934   abort: HTTP request error (incomplete response) (py3 !)
       
   935   abort: HTTP request error (incomplete response; expected 466 bytes got 7) (no-py3 !)
   811   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   936   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   812   [255]
   937   [255]
   813 
   938 
   814   $ killdaemons.py $DAEMON_PIDS
   939   $ killdaemons.py $DAEMON_PIDS
   815 
   940 
       
   941 #if py3
       
   942   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
       
   943   sendall(167 from 167) -> (110) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   944   sendall(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
       
   945   sendall(9 from 9) -> (95) 4\r\nnone\r\n
       
   946   sendall(9 from 9) -> (86) 4\r\nHG20\r\n
       
   947   sendall(9 from 9) -> (77) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
   948   sendall(9 from 9) -> (68) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
   949   sendall(47 from 47) -> (21) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
   950   sendall(9 from 9) -> (12) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
       
   951   sendall(12 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1d (esc)
       
   952   write limit reached; closing socket
       
   953   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
   954   Traceback (most recent call last):
       
   955   Exception: connection closed after sending N bytes
       
   956   
       
   957 
       
   958 #else
   816   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
   959   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
   817   write(2 from 2) -> (110) \r\n
   960   write(2 from 2) -> (110) \r\n
   818   write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
   961   write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
   819   write(9 from 9) -> (95) 4\r\nnone\r\n
   962   write(9 from 9) -> (95) 4\r\nnone\r\n
   820   write(9 from 9) -> (86) 4\r\nHG20\r\n
   963   write(9 from 9) -> (86) 4\r\nHG20\r\n
   827   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   970   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   828   Traceback (most recent call last):
   971   Traceback (most recent call last):
   829   Exception: connection closed after sending N bytes
   972   Exception: connection closed after sending N bytes
   830   
   973   
   831   write(27) -> 15\r\nInternal Server Error\r\n
   974   write(27) -> 15\r\nInternal Server Error\r\n
       
   975 #endif
   832 
   976 
   833   $ rm -f error.log
   977   $ rm -f error.log
   834 
   978 
   835 Server stops sending in middle of bundle2 payload chunk
   979 Server stops sending in middle of bundle2 payload chunk
   836 
   980 
   846   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   990   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   847   [255]
   991   [255]
   848 
   992 
   849   $ killdaemons.py $DAEMON_PIDS
   993   $ killdaemons.py $DAEMON_PIDS
   850 
   994 
       
   995 #if py3
       
   996   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
       
   997   sendall(167 from 167) -> (571) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
       
   998   sendall(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
       
   999   sendall(9 from 9) -> (556) 4\r\nnone\r\n
       
  1000   sendall(9 from 9) -> (547) 4\r\nHG20\r\n
       
  1001   sendall(9 from 9) -> (538) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1002   sendall(9 from 9) -> (529) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
  1003   sendall(47 from 47) -> (482) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
  1004   sendall(9 from 9) -> (473) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
       
  1005   sendall(473 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
       
  1006   write limit reached; closing socket
       
  1007   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
  1008   Traceback (most recent call last):
       
  1009   Exception: connection closed after sending N bytes
       
  1010   
       
  1011 
       
  1012 #else
   851   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
  1013   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
   852   write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n
  1014   write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n
   853   write(2 from 2) -> (571) \r\n
  1015   write(2 from 2) -> (571) \r\n
   854   write(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
  1016   write(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
   855   write(9 from 9) -> (556) 4\r\nnone\r\n
  1017   write(9 from 9) -> (556) 4\r\nnone\r\n
   863   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
  1025   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   864   Traceback (most recent call last):
  1026   Traceback (most recent call last):
   865   Exception: connection closed after sending N bytes
  1027   Exception: connection closed after sending N bytes
   866   
  1028   
   867   write(27) -> 15\r\nInternal Server Error\r\n
  1029   write(27) -> 15\r\nInternal Server Error\r\n
       
  1030 #endif
   868 
  1031 
   869   $ rm -f error.log
  1032   $ rm -f error.log
   870 
  1033 
   871 Server stops sending after 0 length payload chunk size
  1034 Server stops sending after 0 length payload chunk size
   872 
  1035 
   879   adding manifests
  1042   adding manifests
   880   adding file changes
  1043   adding file changes
   881   added 1 changesets with 1 changes to 1 files
  1044   added 1 changesets with 1 changes to 1 files
   882   transaction abort!
  1045   transaction abort!
   883   rollback completed
  1046   rollback completed
   884   abort: HTTP request error (incomplete response; expected 32 bytes got 9)
  1047   abort: HTTP request error (incomplete response) (py3 !)
       
  1048   abort: HTTP request error (incomplete response; expected 32 bytes got 9) (no-py3 !)
   885   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
  1049   (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator)
   886   [255]
  1050   [255]
   887 
  1051 
   888   $ killdaemons.py $DAEMON_PIDS
  1052   $ killdaemons.py $DAEMON_PIDS
   889 
  1053 
       
  1054 #if py3
       
  1055   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
       
  1056   sendall(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
       
  1057   sendall(9 from 9) -> (587) 4\r\nnone\r\n
       
  1058   sendall(9 from 9) -> (578) 4\r\nHG20\r\n
       
  1059   sendall(9 from 9) -> (569) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1060   sendall(9 from 9) -> (560) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
  1061   sendall(47 from 47) -> (513) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
  1062   sendall(9 from 9) -> (504) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
       
  1063   sendall(473 from 473) -> (31) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
       
  1064   sendall(9 from 9) -> (22) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1065   sendall(9 from 9) -> (13) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
       
  1066   sendall(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc)
       
  1067   write limit reached; closing socket
       
  1068   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
  1069   Traceback (most recent call last):
       
  1070   Exception: connection closed after sending N bytes
       
  1071   
       
  1072 
       
  1073 #else
   890   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17
  1074   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17
   891   write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
  1075   write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
   892   write(9 from 9) -> (587) 4\r\nnone\r\n
  1076   write(9 from 9) -> (587) 4\r\nnone\r\n
   893   write(9 from 9) -> (578) 4\r\nHG20\r\n
  1077   write(9 from 9) -> (578) 4\r\nHG20\r\n
   894   write(9 from 9) -> (569) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
  1078   write(9 from 9) -> (569) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   903   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
  1087   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   904   Traceback (most recent call last):
  1088   Traceback (most recent call last):
   905   Exception: connection closed after sending N bytes
  1089   Exception: connection closed after sending N bytes
   906   
  1090   
   907   write(27) -> 15\r\nInternal Server Error\r\n
  1091   write(27) -> 15\r\nInternal Server Error\r\n
       
  1092 #endif
   908 
  1093 
   909   $ rm -f error.log
  1094   $ rm -f error.log
   910 
  1095 
   911 Server stops sending after 0 part bundle part header (indicating end of bundle2 payload)
  1096 Server stops sending after 0 part bundle part header (indicating end of bundle2 payload)
   912 This is before the 0 size chunked transfer part that signals end of HTTP response.
  1097 This is before the 0 size chunked transfer part that signals end of HTTP response.
   925   updating to branch default
  1110   updating to branch default
   926   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1111   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   927 
  1112 
   928   $ killdaemons.py $DAEMON_PIDS
  1113   $ killdaemons.py $DAEMON_PIDS
   929 
  1114 
       
  1115 #if py3
       
  1116   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -25
       
  1117   sendall(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1118   sendall(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
  1119   sendall(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
  1120   sendall(9 from 9) -> (786) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
       
  1121   sendall(473 from 473) -> (313) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
       
  1122   sendall(9 from 9) -> (304) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1123   sendall(9 from 9) -> (295) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
       
  1124   sendall(38 from 38) -> (257) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00	\x06namespacephases\\r\\n (esc)
       
  1125   sendall(9 from 9) -> (248) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
       
  1126   sendall(64 from 64) -> (184) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c	1\npublishing	True\r\n
       
  1127   sendall(9 from 9) -> (175) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1128   sendall(9 from 9) -> (166) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
       
  1129   sendall(41 from 41) -> (125) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00		namespacebookmarks\\r\\n (esc)
       
  1130   sendall(9 from 9) -> (116) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1131   sendall(9 from 9) -> (107) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc)
       
  1132   sendall(35 from 35) -> (72) 1d\\r\\n\x16cache:rev-branch-cache\x00\x00\x00\x03\x00\x00\\r\\n (esc)
       
  1133   sendall(9 from 9) -> (63) 4\\r\\n\x00\x00\x00'\\r\\n (esc)
       
  1134   sendall(45 from 45) -> (18) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc)
       
  1135   sendall(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1136   sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1137   write limit reached; closing socket
       
  1138   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
  1139   Traceback (most recent call last):
       
  1140   Exception: connection closed after sending N bytes
       
  1141   
       
  1142 
       
  1143 #else
   930   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26
  1144   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26
   931   write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
  1145   write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   932   write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
  1146   write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
   933   write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
  1147   write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
   934   write(9 from 9) -> (786) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
  1148   write(9 from 9) -> (786) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
   952   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
  1166   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   953   Traceback (most recent call last):
  1167   Traceback (most recent call last):
   954   Exception: connection closed after sending N bytes
  1168   Exception: connection closed after sending N bytes
   955   
  1169   
   956   write(27) -> 15\r\nInternal Server Error\r\n
  1170   write(27) -> 15\r\nInternal Server Error\r\n
       
  1171 #endif
   957 
  1172 
   958   $ rm -f error.log
  1173   $ rm -f error.log
   959   $ rm -rf clone
  1174   $ rm -rf clone
   960 
  1175 
   961 Server sends a size 0 chunked-transfer size without terminating \r\n
  1176 Server sends a size 0 chunked-transfer size without terminating \r\n
   973   updating to branch default
  1188   updating to branch default
   974   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1189   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   975 
  1190 
   976   $ killdaemons.py $DAEMON_PIDS
  1191   $ killdaemons.py $DAEMON_PIDS
   977 
  1192 
       
  1193 #if py3
       
  1194   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26
       
  1195   sendall(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1196   sendall(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
       
  1197   sendall(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
       
  1198   sendall(9 from 9) -> (789) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
       
  1199   sendall(473 from 473) -> (316) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
       
  1200   sendall(9 from 9) -> (307) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1201   sendall(9 from 9) -> (298) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
       
  1202   sendall(38 from 38) -> (260) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00	\x06namespacephases\\r\\n (esc)
       
  1203   sendall(9 from 9) -> (251) 4\\r\\n\x00\x00\x00:\\r\\n (esc)
       
  1204   sendall(64 from 64) -> (187) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c	1\npublishing	True\r\n
       
  1205   sendall(9 from 9) -> (178) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1206   sendall(9 from 9) -> (169) 4\\r\\n\x00\x00\x00#\\r\\n (esc)
       
  1207   sendall(41 from 41) -> (128) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00		namespacebookmarks\\r\\n (esc)
       
  1208   sendall(9 from 9) -> (119) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1209   sendall(9 from 9) -> (110) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc)
       
  1210   sendall(35 from 35) -> (75) 1d\\r\\n\x16cache:rev-branch-cache\x00\x00\x00\x03\x00\x00\\r\\n (esc)
       
  1211   sendall(9 from 9) -> (66) 4\\r\\n\x00\x00\x00'\\r\\n (esc)
       
  1212   sendall(45 from 45) -> (21) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc)
       
  1213   sendall(9 from 9) -> (12) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1214   sendall(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
       
  1215   sendall(3 from 5) -> (0) 0\r\n
       
  1216   write limit reached; closing socket
       
  1217   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
       
  1218   Traceback (most recent call last):
       
  1219   Exception: connection closed after sending N bytes
       
  1220   
       
  1221 
       
  1222 #else
   978   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27
  1223   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27
   979   write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
  1224   write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   980   write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
  1225   write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
   981   write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
  1226   write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02	\x01version02nbchanges1\\r\\n (esc)
   982   write(9 from 9) -> (789) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
  1227   write(9 from 9) -> (789) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
  1001   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
  1246   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
  1002   Traceback (most recent call last):
  1247   Traceback (most recent call last):
  1003   Exception: connection closed after sending N bytes
  1248   Exception: connection closed after sending N bytes
  1004   
  1249   
  1005   write(27) -> 15\r\nInternal Server Error\r\n
  1250   write(27) -> 15\r\nInternal Server Error\r\n
       
  1251 #endif
  1006 
  1252 
  1007   $ rm -f error.log
  1253   $ rm -f error.log
  1008   $ rm -rf clone
  1254   $ rm -rf clone