tests/test-http-bad-server.t
branchstable
changeset 32067 52cca17ac523
parent 32064 f82cdd5ee57e
child 32089 f942dc80819f
equal deleted inserted replaced
32066:40cf693fc07d 32067:52cca17ac523
    69   $ cat hg.pid > $DAEMON_PIDS
    69   $ cat hg.pid > $DAEMON_PIDS
    70 
    70 
    71 TODO this error message is not very good
    71 TODO this error message is not very good
    72 
    72 
    73   $ hg clone http://localhost:$HGPORT/ clone
    73   $ hg clone http://localhost:$HGPORT/ clone
    74   abort: error: ''
    74   abort: error: (''|) (re)
    75   [255]
    75   [255]
    76 
    76 
    77   $ killdaemons.py $DAEMON_PIDS
    77   $ killdaemons.py $DAEMON_PIDS
    78 
    78 
    79   $ cat error.log
    79   $ cat error.log
    80   readline(1 from 65537) -> (1) G
    80   readline\(1 from (-1|65537)\) -> \(1\) G (re)
    81   read limit reached; closing socket
    81   read limit reached; closing socket
    82 
    82 
    83   $ rm -f error.log
    83   $ rm -f error.log
    84 
    84 
    85 Same failure, but server reads full HTTP request line
    85 Same failure, but server reads full HTTP request line
    86 
    86 
    87   $ hg --config badserver.closeafterrecvbytes=40 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
    87   $ hg --config badserver.closeafterrecvbytes=40 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
    88   $ cat hg.pid > $DAEMON_PIDS
    88   $ cat hg.pid > $DAEMON_PIDS
    89   $ hg clone http://localhost:$HGPORT/ clone
    89   $ hg clone http://localhost:$HGPORT/ clone
    90   abort: error: ''
    90   abort: error: (''|) (re)
    91   [255]
    91   [255]
    92 
    92 
    93   $ killdaemons.py $DAEMON_PIDS
    93   $ killdaemons.py $DAEMON_PIDS
    94 
    94 
    95   $ cat error.log
    95   $ cat error.log
    96   readline(40 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
    96   readline\(40 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
    97   readline(7 from -1) -> (7) Accept-
    97   readline(7 from -1) -> (7) Accept-
    98   read limit reached; closing socket
    98   read limit reached; closing socket
    99 
    99 
   100   $ rm -f error.log
   100   $ rm -f error.log
   101 
   101 
   102 Failure on subsequent HTTP request on the same socket (cmd?batch)
   102 Failure on subsequent HTTP request on the same socket (cmd?batch)
   103 
   103 
   104   $ hg --config badserver.closeafterrecvbytes=210 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   104   $ hg --config badserver.closeafterrecvbytes=210 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   105   $ cat hg.pid > $DAEMON_PIDS
   105   $ cat hg.pid > $DAEMON_PIDS
   106   $ hg clone http://localhost:$HGPORT/ clone
   106   $ hg clone http://localhost:$HGPORT/ clone
   107   abort: error: ''
   107   abort: error: (''|) (re)
   108   [255]
   108   [255]
   109 
   109 
   110   $ killdaemons.py $DAEMON_PIDS
   110   $ killdaemons.py $DAEMON_PIDS
   111 
   111 
   112   $ cat error.log
   112   $ cat error.log
   113   readline(210 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   113   readline\(210 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   114   readline(177 from -1) -> (27) Accept-Encoding: identity\r\n
   114   readline(177 from -1) -> (27) Accept-Encoding: identity\r\n
   115   readline(150 from -1) -> (35) accept: application/mercurial-0.1\r\n
   115   readline(150 from -1) -> (35) accept: application/mercurial-0.1\r\n
   116   readline(115 from -1) -> (23) host: localhost:$HGPORT\r\n
   116   readline(115 from -1) -> (23) host: localhost:$HGPORT\r\n
   117   readline(92 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   117   readline(92 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   118   readline(43 from -1) -> (2) \r\n
   118   readline(43 from -1) -> (2) \r\n
   121   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   121   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   122   write(41) -> Content-Type: application/mercurial-0.1\r\n
   122   write(41) -> Content-Type: application/mercurial-0.1\r\n
   123   write(21) -> Content-Length: 405\r\n
   123   write(21) -> Content-Length: 405\r\n
   124   write(2) -> \r\n
   124   write(2) -> \r\n
   125   write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   125   write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   126   readline(41 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   126   readline\(41 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   127   readline(15 from -1) -> (15) Accept-Encoding
   127   readline(15 from -1) -> (15) Accept-Encoding
   128   read limit reached; closing socket
   128   read limit reached; closing socket
   129   readline(210 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   129   readline\(210 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   130   readline(184 from -1) -> (27) Accept-Encoding: identity\r\n
   130   readline(184 from -1) -> (27) Accept-Encoding: identity\r\n
   131   readline(157 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   131   readline(157 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   132   readline(128 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   132   readline(128 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   133   readline(87 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   133   readline(87 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   134   readline(39 from -1) -> (35) accept: application/mercurial-0.1\r\n
   134   readline(39 from -1) -> (35) accept: application/mercurial-0.1\r\n
   141 
   141 
   142   $ hg --config badserver.closeafterrecvbytes=292 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   142   $ hg --config badserver.closeafterrecvbytes=292 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   143   $ cat hg.pid > $DAEMON_PIDS
   143   $ cat hg.pid > $DAEMON_PIDS
   144   $ hg clone http://localhost:$HGPORT/ clone
   144   $ hg clone http://localhost:$HGPORT/ clone
   145   requesting all changes
   145   requesting all changes
   146   abort: error: ''
   146   abort: error: (''|) (re)
   147   [255]
   147   [255]
   148 
   148 
   149   $ killdaemons.py $DAEMON_PIDS
   149   $ killdaemons.py $DAEMON_PIDS
   150 
   150 
   151   $ cat error.log
   151   $ cat error.log
   152   readline(292 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   152   readline\(292 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   153   readline(259 from -1) -> (27) Accept-Encoding: identity\r\n
   153   readline(259 from -1) -> (27) Accept-Encoding: identity\r\n
   154   readline(232 from -1) -> (35) accept: application/mercurial-0.1\r\n
   154   readline(232 from -1) -> (35) accept: application/mercurial-0.1\r\n
   155   readline(197 from -1) -> (23) host: localhost:$HGPORT\r\n
   155   readline(197 from -1) -> (23) host: localhost:$HGPORT\r\n
   156   readline(174 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   156   readline(174 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   157   readline(125 from -1) -> (2) \r\n
   157   readline(125 from -1) -> (2) \r\n
   160   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   160   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   161   write(41) -> Content-Type: application/mercurial-0.1\r\n
   161   write(41) -> Content-Type: application/mercurial-0.1\r\n
   162   write(21) -> Content-Length: 405\r\n
   162   write(21) -> Content-Length: 405\r\n
   163   write(2) -> \r\n
   163   write(2) -> \r\n
   164   write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   164   write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   165   readline(123 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   165   readline\(123 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   166   readline(97 from -1) -> (27) Accept-Encoding: identity\r\n
   166   readline(97 from -1) -> (27) Accept-Encoding: identity\r\n
   167   readline(70 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   167   readline(70 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   168   readline(41 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   168   readline(41 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   169   read limit reached; closing socket
   169   read limit reached; closing socket
   170   readline(292 from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   170   readline\(292 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   171   readline(266 from -1) -> (27) Accept-Encoding: identity\r\n
   171   readline(266 from -1) -> (27) Accept-Encoding: identity\r\n
   172   readline(239 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   172   readline(239 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   173   readline(210 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   173   readline(210 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   174   readline(169 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   174   readline(169 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   175   readline(121 from -1) -> (35) accept: application/mercurial-0.1\r\n
   175   readline(121 from -1) -> (35) accept: application/mercurial-0.1\r\n
   181   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   181   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   182   write(41) -> Content-Type: application/mercurial-0.1\r\n
   182   write(41) -> Content-Type: application/mercurial-0.1\r\n
   183   write(20) -> Content-Length: 42\r\n
   183   write(20) -> Content-Length: 42\r\n
   184   write(2) -> \r\n
   184   write(2) -> \r\n
   185   write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   185   write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   186   readline(12 from 65537) -> (12) GET /?cmd=ge
   186   readline\(12 from (-1|65537)\) -> \(12\) GET /\?cmd=ge (re)
   187   read limit reached; closing socket
   187   read limit reached; closing socket
   188   readline(292 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   188   readline\(292 from (-1|65537)\) -> \(30\) GET /\?cmd=getbundle HTTP/1.1\\r\\n (re)
   189   readline(262 from -1) -> (27) Accept-Encoding: identity\r\n
   189   readline(262 from -1) -> (27) Accept-Encoding: identity\r\n
   190   readline(235 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   190   readline(235 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   191   readline(206 from -1) -> (206) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Ali
   191   readline(206 from -1) -> (206) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Ali
   192   read limit reached; closing socket
   192   read limit reached; closing socket
   193 
   193 
   197 
   197 
   198   $ hg --config experimental.httppostargs=true --config badserver.closeafterrecvbytes=315 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   198   $ hg --config experimental.httppostargs=true --config badserver.closeafterrecvbytes=315 serve -p $HGPORT -d --pid-file=hg.pid -E error.log
   199   $ cat hg.pid > $DAEMON_PIDS
   199   $ cat hg.pid > $DAEMON_PIDS
   200 
   200 
   201   $ hg clone http://localhost:$HGPORT/ clone
   201   $ hg clone http://localhost:$HGPORT/ clone
   202   abort: error: ''
   202   abort: error: (''|) (re)
   203   [255]
   203   [255]
   204 
   204 
   205   $ killdaemons.py $DAEMON_PIDS
   205   $ killdaemons.py $DAEMON_PIDS
   206 
   206 
   207   $ cat error.log
   207   $ cat error.log
   208   readline(315 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   208   readline\(315 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   209   readline(282 from -1) -> (27) Accept-Encoding: identity\r\n
   209   readline(282 from -1) -> (27) Accept-Encoding: identity\r\n
   210   readline(255 from -1) -> (35) accept: application/mercurial-0.1\r\n
   210   readline(255 from -1) -> (35) accept: application/mercurial-0.1\r\n
   211   readline(220 from -1) -> (23) host: localhost:$HGPORT\r\n
   211   readline(220 from -1) -> (23) host: localhost:$HGPORT\r\n
   212   readline(197 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   212   readline(197 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   213   readline(148 from -1) -> (2) \r\n
   213   readline(148 from -1) -> (2) \r\n
   216   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   216   write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   217   write(41) -> Content-Type: application/mercurial-0.1\r\n
   217   write(41) -> Content-Type: application/mercurial-0.1\r\n
   218   write(21) -> Content-Length: 418\r\n
   218   write(21) -> Content-Length: 418\r\n
   219   write(2) -> \r\n
   219   write(2) -> \r\n
   220   write(418) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httppostargs httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   220   write(418) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httppostargs httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   221   readline(146 from 65537) -> (27) POST /?cmd=batch HTTP/1.1\r\n
   221   readline\(146 from (-1|65537)\) -> \(27\) POST /\?cmd=batch HTTP/1.1\\r\\n (re)
   222   readline(119 from -1) -> (27) Accept-Encoding: identity\r\n
   222   readline(119 from -1) -> (27) Accept-Encoding: identity\r\n
   223   readline(92 from -1) -> (41) content-type: application/mercurial-0.1\r\n
   223   readline(92 from -1) -> (41) content-type: application/mercurial-0.1\r\n
   224   readline(51 from -1) -> (19) vary: X-HgProto-1\r\n
   224   readline(51 from -1) -> (19) vary: X-HgProto-1\r\n
   225   readline(32 from -1) -> (19) x-hgargs-post: 28\r\n
   225   readline(32 from -1) -> (19) x-hgargs-post: 28\r\n
   226   readline(13 from -1) -> (13) x-hgproto-1: 
   226   readline(13 from -1) -> (13) x-hgproto-1: 
   227   read limit reached; closing socket
   227   read limit reached; closing socket
   228   readline(315 from 65537) -> (27) POST /?cmd=batch HTTP/1.1\r\n
   228   readline\(315 from (-1|65537)\) -> \(27\) POST /\?cmd=batch HTTP/1.1\\r\\n (re)
   229   readline(288 from -1) -> (27) Accept-Encoding: identity\r\n
   229   readline(288 from -1) -> (27) Accept-Encoding: identity\r\n
   230   readline(261 from -1) -> (41) content-type: application/mercurial-0.1\r\n
   230   readline(261 from -1) -> (41) content-type: application/mercurial-0.1\r\n
   231   readline(220 from -1) -> (19) vary: X-HgProto-1\r\n
   231   readline(220 from -1) -> (19) vary: X-HgProto-1\r\n
   232   readline(201 from -1) -> (19) x-hgargs-post: 28\r\n
   232   readline(201 from -1) -> (19) x-hgargs-post: 28\r\n
   233   readline(182 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   233   readline(182 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   254   [255]
   254   [255]
   255 
   255 
   256   $ killdaemons.py $DAEMON_PIDS
   256   $ killdaemons.py $DAEMON_PIDS
   257 
   257 
   258   $ cat error.log
   258   $ cat error.log
   259   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   259   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   260   readline(-1) -> (27) Accept-Encoding: identity\r\n
   260   readline(-1) -> (27) Accept-Encoding: identity\r\n
   261   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   261   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   262   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   262   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   263   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   263   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   264   readline(-1) -> (2) \r\n
   264   readline(-1) -> (2) \r\n
   279   [255]
   279   [255]
   280 
   280 
   281   $ killdaemons.py $DAEMON_PIDS
   281   $ killdaemons.py $DAEMON_PIDS
   282 
   282 
   283   $ cat error.log
   283   $ cat error.log
   284   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   284   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   285   readline(-1) -> (27) Accept-Encoding: identity\r\n
   285   readline(-1) -> (27) Accept-Encoding: identity\r\n
   286   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   286   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   287   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   287   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   288   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   288   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   289   readline(-1) -> (2) \r\n
   289   readline(-1) -> (2) \r\n
   314   [255]
   314   [255]
   315 
   315 
   316   $ killdaemons.py $DAEMON_PIDS
   316   $ killdaemons.py $DAEMON_PIDS
   317 
   317 
   318   $ cat error.log
   318   $ cat error.log
   319   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   319   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   320   readline(-1) -> (27) Accept-Encoding: identity\r\n
   320   readline(-1) -> (27) Accept-Encoding: identity\r\n
   321   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   321   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   322   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   322   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   323   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   323   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   324   readline(-1) -> (2) \r\n
   324   readline(-1) -> (2) \r\n
   327   write(37 from 37) -> (599) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   327   write(37 from 37) -> (599) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   328   write(41 from 41) -> (558) Content-Type: application/mercurial-0.1\r\n
   328   write(41 from 41) -> (558) Content-Type: application/mercurial-0.1\r\n
   329   write(21 from 21) -> (537) Content-Length: 405\r\n
   329   write(21 from 21) -> (537) Content-Length: 405\r\n
   330   write(2 from 2) -> (535) \r\n
   330   write(2 from 2) -> (535) \r\n
   331   write(405 from 405) -> (130) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   331   write(405 from 405) -> (130) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   332   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   332   readline\((-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   333   readline(-1) -> (27) Accept-Encoding: identity\r\n
   333   readline(-1) -> (27) Accept-Encoding: identity\r\n
   334   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   334   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   335   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   335   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   336   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   336   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   337   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   337   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   357   [1]
   357   [1]
   358 
   358 
   359   $ killdaemons.py $DAEMON_PIDS
   359   $ killdaemons.py $DAEMON_PIDS
   360 
   360 
   361   $ cat error.log
   361   $ cat error.log
   362   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   362   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   363   readline(-1) -> (27) Accept-Encoding: identity\r\n
   363   readline(-1) -> (27) Accept-Encoding: identity\r\n
   364   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   364   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   365   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   365   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   366   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   366   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   367   readline(-1) -> (2) \r\n
   367   readline(-1) -> (2) \r\n
   370   write(37 from 37) -> (664) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   370   write(37 from 37) -> (664) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   371   write(41 from 41) -> (623) Content-Type: application/mercurial-0.1\r\n
   371   write(41 from 41) -> (623) Content-Type: application/mercurial-0.1\r\n
   372   write(21 from 21) -> (602) Content-Length: 405\r\n
   372   write(21 from 21) -> (602) Content-Length: 405\r\n
   373   write(2 from 2) -> (600) \r\n
   373   write(2 from 2) -> (600) \r\n
   374   write(405 from 405) -> (195) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   374   write(405 from 405) -> (195) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   375   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   375   readline\((-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   376   readline(-1) -> (27) Accept-Encoding: identity\r\n
   376   readline(-1) -> (27) Accept-Encoding: identity\r\n
   377   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   377   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   378   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   378   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   379   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   379   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   380   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   380   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   409   [255]
   409   [255]
   410 
   410 
   411   $ killdaemons.py $DAEMON_PIDS
   411   $ killdaemons.py $DAEMON_PIDS
   412 
   412 
   413   $ cat error.log
   413   $ cat error.log
   414   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   414   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   415   readline(-1) -> (27) Accept-Encoding: identity\r\n
   415   readline(-1) -> (27) Accept-Encoding: identity\r\n
   416   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   416   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   417   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   417   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   418   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   418   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   419   readline(-1) -> (2) \r\n
   419   readline(-1) -> (2) \r\n
   422   write(37 from 37) -> (799) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   422   write(37 from 37) -> (799) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   423   write(41 from 41) -> (758) Content-Type: application/mercurial-0.1\r\n
   423   write(41 from 41) -> (758) Content-Type: application/mercurial-0.1\r\n
   424   write(21 from 21) -> (737) Content-Length: 405\r\n
   424   write(21 from 21) -> (737) Content-Length: 405\r\n
   425   write(2 from 2) -> (735) \r\n
   425   write(2 from 2) -> (735) \r\n
   426   write(405 from 405) -> (330) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   426   write(405 from 405) -> (330) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   427   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   427   readline\((-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   428   readline(-1) -> (27) Accept-Encoding: identity\r\n
   428   readline(-1) -> (27) Accept-Encoding: identity\r\n
   429   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   429   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   430   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   430   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   431   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   431   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   432   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   432   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   438   write(37 from 37) -> (234) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   438   write(37 from 37) -> (234) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   439   write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n
   439   write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n
   440   write(20 from 20) -> (173) Content-Length: 42\r\n
   440   write(20 from 20) -> (173) Content-Length: 42\r\n
   441   write(2 from 2) -> (171) \r\n
   441   write(2 from 2) -> (171) \r\n
   442   write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   442   write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   443   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   443   readline\((-1|65537)\) -> \(30\) GET /\?cmd=getbundle HTTP/1.1\\r\\n (re)
   444   readline(-1) -> (27) Accept-Encoding: identity\r\n
   444   readline(-1) -> (27) Accept-Encoding: identity\r\n
   445   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   445   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   446   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   446   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   447   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   447   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   448   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   448   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   470   [255]
   470   [255]
   471 
   471 
   472   $ killdaemons.py $DAEMON_PIDS
   472   $ killdaemons.py $DAEMON_PIDS
   473 
   473 
   474   $ cat error.log
   474   $ cat error.log
   475   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   475   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   476   readline(-1) -> (27) Accept-Encoding: identity\r\n
   476   readline(-1) -> (27) Accept-Encoding: identity\r\n
   477   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   477   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   478   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   478   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   479   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   479   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   480   readline(-1) -> (2) \r\n
   480   readline(-1) -> (2) \r\n
   483   write(37 from 37) -> (837) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   483   write(37 from 37) -> (837) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   484   write(41 from 41) -> (796) Content-Type: application/mercurial-0.1\r\n
   484   write(41 from 41) -> (796) Content-Type: application/mercurial-0.1\r\n
   485   write(21 from 21) -> (775) Content-Length: 405\r\n
   485   write(21 from 21) -> (775) Content-Length: 405\r\n
   486   write(2 from 2) -> (773) \r\n
   486   write(2 from 2) -> (773) \r\n
   487   write(405 from 405) -> (368) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   487   write(405 from 405) -> (368) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   488   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   488   readline\((-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   489   readline(-1) -> (27) Accept-Encoding: identity\r\n
   489   readline(-1) -> (27) Accept-Encoding: identity\r\n
   490   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   490   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   491   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   491   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   492   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   492   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   493   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   493   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   499   write(37 from 37) -> (272) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   499   write(37 from 37) -> (272) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   500   write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n
   500   write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n
   501   write(20 from 20) -> (211) Content-Length: 42\r\n
   501   write(20 from 20) -> (211) Content-Length: 42\r\n
   502   write(2 from 2) -> (209) \r\n
   502   write(2 from 2) -> (209) \r\n
   503   write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   503   write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   504   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   504   readline\((-1|65537)\) -> \(30\) GET /\?cmd=getbundle HTTP/1.1\\r\\n (re)
   505   readline(-1) -> (27) Accept-Encoding: identity\r\n
   505   readline(-1) -> (27) Accept-Encoding: identity\r\n
   506   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   506   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   507   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   507   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   508   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   508   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   509   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   509   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   533   [255]
   533   [255]
   534 
   534 
   535   $ killdaemons.py $DAEMON_PIDS
   535   $ killdaemons.py $DAEMON_PIDS
   536 
   536 
   537   $ cat error.log
   537   $ cat error.log
   538   readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
   538   readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re)
   539   readline(-1) -> (27) Accept-Encoding: identity\r\n
   539   readline(-1) -> (27) Accept-Encoding: identity\r\n
   540   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   540   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   541   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   541   readline(-1) -> (23) host: localhost:$HGPORT\r\n
   542   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   542   readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n
   543   readline(-1) -> (2) \r\n
   543   readline(-1) -> (2) \r\n
   546   write(37 from 37) -> (849) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   546   write(37 from 37) -> (849) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   547   write(41 from 41) -> (808) Content-Type: application/mercurial-0.1\r\n
   547   write(41 from 41) -> (808) Content-Type: application/mercurial-0.1\r\n
   548   write(21 from 21) -> (787) Content-Length: 405\r\n
   548   write(21 from 21) -> (787) Content-Length: 405\r\n
   549   write(2 from 2) -> (785) \r\n
   549   write(2 from 2) -> (785) \r\n
   550   write(405 from 405) -> (380) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   550   write(405 from 405) -> (380) lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none
   551   readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n
   551   readline\((-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re)
   552   readline(-1) -> (27) Accept-Encoding: identity\r\n
   552   readline(-1) -> (27) Accept-Encoding: identity\r\n
   553   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   553   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   554   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   554   readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n
   555   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   555   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   556   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   556   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   562   write(37 from 37) -> (284) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   562   write(37 from 37) -> (284) Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n
   563   write(41 from 41) -> (243) Content-Type: application/mercurial-0.1\r\n
   563   write(41 from 41) -> (243) Content-Type: application/mercurial-0.1\r\n
   564   write(20 from 20) -> (223) Content-Length: 42\r\n
   564   write(20 from 20) -> (223) Content-Length: 42\r\n
   565   write(2 from 2) -> (221) \r\n
   565   write(2 from 2) -> (221) \r\n
   566   write(42 from 42) -> (179) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   566   write(42 from 42) -> (179) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n;
   567   readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n
   567   readline\((-1|65537)\) -> \(30\) GET /\?cmd=getbundle HTTP/1.1\\r\\n (re)
   568   readline(-1) -> (27) Accept-Encoding: identity\r\n
   568   readline(-1) -> (27) Accept-Encoding: identity\r\n
   569   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   569   readline(-1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n
   570   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   570   readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n
   571   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   571   readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n
   572   readline(-1) -> (35) accept: application/mercurial-0.1\r\n
   572   readline(-1) -> (35) accept: application/mercurial-0.1\r\n