| 1 |
#require serve zstd |
| 2 |
|
| 3 |
Client version is embedded in HTTP request and is effectively dynamic. Pin the |
| 4 |
version so behavior is deterministic. |
| 5 |
|
| 6 |
$ cat > fakeversion.py << EOF |
| 7 |
> from mercurial import util |
| 8 |
> util.version = lambda: b'4.2' |
| 9 |
> EOF |
| 10 |
|
| 11 |
$ cat >> $HGRCPATH << EOF |
| 12 |
> [extensions] |
| 13 |
> fakeversion = `pwd`/fakeversion.py |
| 14 |
> [format] |
| 15 |
> sparse-revlog = no |
| 16 |
> use-persistent-nodemap = no |
| 17 |
> [devel] |
| 18 |
> legacy.exchange = phases |
| 19 |
> [server] |
| 20 |
> concurrent-push-mode = strict |
| 21 |
> EOF |
| 22 |
|
| 23 |
$ hg init server0 |
| 24 |
$ cd server0 |
| 25 |
$ touch foo |
| 26 |
$ hg -q commit -A -m initial |
| 27 |
|
| 28 |
Also disable compression because zstd is optional and causes output to vary |
| 29 |
and because debugging partial responses is hard when compression is involved |
| 30 |
|
| 31 |
$ cat > .hg/hgrc << EOF |
| 32 |
> [extensions] |
| 33 |
> badserver = $TESTDIR/testlib/badserverext.py |
| 34 |
> [server] |
| 35 |
> compressionengines = none |
| 36 |
> EOF |
| 37 |
|
| 38 |
Failure to accept() socket should result in connection related error message |
| 39 |
---------------------------------------------------------------------------- |
| 40 |
|
| 41 |
$ hg serve --config badserver.close-before-accept=true -p $HGPORT -d --pid-file=hg.pid |
| 42 |
$ cat hg.pid > $DAEMON_PIDS |
| 43 |
|
| 44 |
$ hg clone http://localhost:$HGPORT/ clone |
| 45 |
abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$|\$ECONNREFUSED\$|\$EINVAL\$) (re) |
| 46 |
[100] |
| 47 |
|
| 48 |
(The server exits on its own, but there is a race between that and starting a new server. |
| 49 |
So ensure the process is dead.) |
| 50 |
|
| 51 |
$ killdaemons.py $DAEMON_PIDS |
| 52 |
|
| 53 |
Failure immediately after accept() should yield connection related error message |
| 54 |
-------------------------------------------------------------------------------- |
| 55 |
|
| 56 |
$ hg serve --config badserver.close-after-accept=true -p $HGPORT -d --pid-file=hg.pid |
| 57 |
$ cat hg.pid > $DAEMON_PIDS |
| 58 |
|
| 59 |
TODO: this usually outputs good results, but sometimes emits abort: |
| 60 |
error: '' on FreeBSD and OS X. |
| 61 |
What we ideally want are: |
| 62 |
|
| 63 |
abort: error: $ECONNRESET$ |
| 64 |
|
| 65 |
The flakiness in this output was observable easily with |
| 66 |
--runs-per-test=20 on macOS 10.12 during the freeze for 4.2. |
| 67 |
$ hg clone http://localhost:$HGPORT/ clone |
| 68 |
abort: error: * (glob) |
| 69 |
[100] |
| 70 |
|
| 71 |
$ killdaemons.py $DAEMON_PIDS |
| 72 |
|
| 73 |
Failure to read all bytes in initial HTTP request should yield connection related error message |
| 74 |
----------------------------------------------------------------------------------------------- |
| 75 |
|
| 76 |
$ hg serve --config badserver.close-after-recv-bytes=1 -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 77 |
$ cat hg.pid > $DAEMON_PIDS |
| 78 |
|
| 79 |
$ hg clone http://localhost:$HGPORT/ clone |
| 80 |
abort: error: bad HTTP status line: * (glob) |
| 81 |
[100] |
| 82 |
|
| 83 |
$ killdaemons.py $DAEMON_PIDS |
| 84 |
|
| 85 |
$ cat error.log |
| 86 |
readline(1 from ~) -> (1) G |
| 87 |
read limit reached; closing socket |
| 88 |
|
| 89 |
$ rm -f error.log |
| 90 |
|
| 91 |
Same failure, but server reads full HTTP request line |
| 92 |
----------------------------------------------------- |
| 93 |
|
| 94 |
$ hg serve \ |
| 95 |
> --config badserver.close-after-recv-patterns="GET /\?cmd=capabilities" \ |
| 96 |
> --config badserver.close-after-recv-bytes=7 \ |
| 97 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 98 |
$ cat hg.pid > $DAEMON_PIDS |
| 99 |
$ hg clone http://localhost:$HGPORT/ clone |
| 100 |
abort: error: bad HTTP status line: * (glob) |
| 101 |
[100] |
| 102 |
|
| 103 |
$ killdaemons.py $DAEMON_PIDS |
| 104 |
|
| 105 |
$ cat error.log |
| 106 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 107 |
readline(7 from *) -> (7) Accept- (glob) |
| 108 |
read limit reached; closing socket |
| 109 |
|
| 110 |
$ rm -f error.log |
| 111 |
|
| 112 |
Failure on subsequent HTTP request on the same socket (cmd?batch) |
| 113 |
----------------------------------------------------------------- |
| 114 |
|
| 115 |
$ hg serve \ |
| 116 |
> --config badserver.close-after-recv-patterns="GET /\?cmd=batch,GET /\?cmd=batch" \ |
| 117 |
> --config badserver.close-after-recv-bytes=15,197 \ |
| 118 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 119 |
$ cat hg.pid > $DAEMON_PIDS |
| 120 |
$ hg clone http://localhost:$HGPORT/ clone |
| 121 |
abort: error: bad HTTP status line: * (glob) |
| 122 |
[100] |
| 123 |
|
| 124 |
$ killdaemons.py $DAEMON_PIDS |
| 125 |
|
| 126 |
$ cat error.log |
| 127 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 128 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 129 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 130 |
readline(*) -> (*) host: localhost:$HGPORT\r\n (glob) |
| 131 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 132 |
readline(*) -> (2) \r\n (glob) |
| 133 |
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: *\r\n\r\n (glob) |
| 134 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 135 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) |
| 136 |
readline(*) -> (1?) Accept-Encoding* (glob) |
| 137 |
read limit reached; closing socket |
| 138 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 139 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 140 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 141 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 142 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 143 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 144 |
readline(4 from *) -> (4) host (glob) |
| 145 |
read limit reached; closing socket |
| 146 |
|
| 147 |
$ rm -f error.log |
| 148 |
|
| 149 |
Failure to read getbundle HTTP request |
| 150 |
-------------------------------------- |
| 151 |
|
| 152 |
$ hg serve \ |
| 153 |
> --config badserver.close-after-recv-patterns="GET /\?cmd=batch,user-agent: mercurial/proto-1.0,GET /\?cmd=getbundle" \ |
| 154 |
> --config badserver.close-after-recv-bytes=110,26,281 \ |
| 155 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 156 |
$ cat hg.pid > $DAEMON_PIDS |
| 157 |
$ hg clone http://localhost:$HGPORT/ clone |
| 158 |
requesting all changes |
| 159 |
abort: error: bad HTTP status line: * (glob) |
| 160 |
[100] |
| 161 |
|
| 162 |
$ killdaemons.py $DAEMON_PIDS |
| 163 |
|
| 164 |
$ cat error.log |
| 165 |
readline(1 from -1) -> (1) x (?) |
| 166 |
readline(1 from -1) -> (1) x (?) |
| 167 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 168 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 169 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 170 |
readline(*) -> (*) host: localhost:$HGPORT\r\n (glob) |
| 171 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 172 |
readline(*) -> (2) \r\n (glob) |
| 173 |
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: *\r\n\r\n (glob) |
| 174 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 175 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) |
| 176 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 177 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 178 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 179 |
readline(*) -> (1?) x-hgproto-1:* (glob) |
| 180 |
read limit reached; closing socket |
| 181 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 182 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 183 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 184 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 185 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 186 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 187 |
readline(*) -> (*) host: localhost:$HGPORT\r\n (glob) |
| 188 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 189 |
readline(*) -> (2) \r\n (glob) |
| 190 |
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 |
| 191 |
sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
| 192 |
readline(24 from ~) -> (*) GET /?cmd=getbundle HTTP* (glob) |
| 193 |
read limit reached; closing socket |
| 194 |
readline(~) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
| 195 |
readline(281 from *) -> (27) Accept-Encoding: identity\r\n (glob) |
| 196 |
readline(254 from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 197 |
readline(225 from *) -> (225) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adelta-compression%253Dnone%252Czlib%252Czstd%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsup (glob) |
| 198 |
read limit reached; closing socket |
| 199 |
|
| 200 |
$ rm -f error.log |
| 201 |
|
| 202 |
Now do a variation using POST to send arguments |
| 203 |
=============================================== |
| 204 |
|
| 205 |
$ hg serve \ |
| 206 |
> --config badserver.close-after-recv-patterns="x-hgargs-post:,user-agent: mercurial/proto-1.0" \ |
| 207 |
> --config badserver.close-after-recv-bytes="14,26" \ |
| 208 |
> --config experimental.httppostargs=true \ |
| 209 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 210 |
$ cat hg.pid > $DAEMON_PIDS |
| 211 |
|
| 212 |
$ hg clone http://localhost:$HGPORT/ clone |
| 213 |
abort: error: bad HTTP status line: * (glob) |
| 214 |
[100] |
| 215 |
|
| 216 |
$ killdaemons.py $DAEMON_PIDS |
| 217 |
|
| 218 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 219 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 220 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 221 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 222 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 223 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 224 |
readline(*) -> (2) \r\n (glob) |
| 225 |
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: *\r\n\r\n (glob) |
| 226 |
sendall(*) -> 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=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 227 |
readline(~) -> (27) POST /?cmd=batch HTTP/1.1\r\n (glob) |
| 228 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 229 |
readline(*) -> (41) content-type: application/mercurial-0.1\r\n (glob) |
| 230 |
readline(*) -> (33) vary: X-HgArgs-Post,X-HgProto-1\r\n (glob) |
| 231 |
readline(*) -> (19) x-hgargs-post: 28\r\n (glob) |
| 232 |
readline(*) -> (1?) x-hgproto-1: * (glob) |
| 233 |
read limit reached; closing socket |
| 234 |
readline(~) -> (27) POST /?cmd=batch HTTP/1.1\r\n |
| 235 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 236 |
readline(*) -> (41) content-type: application/mercurial-0.1\r\n (glob) |
| 237 |
readline(*) -> (33) vary: X-HgArgs-Post,X-HgProto-1\r\n (glob) |
| 238 |
readline(*) -> (19) x-hgargs-post: 28\r\n (glob) |
| 239 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 240 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 241 |
readline(*) -> (20) content-length: 28\r\n (glob) |
| 242 |
readline(*) -> (*) host: localhost:$HGPORT\r\n (glob) |
| 243 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 244 |
readline(*) -> (2) \r\n (glob) |
| 245 |
read(24 from 28) -> (*) cmds=* (glob) |
| 246 |
read limit reached; closing socket |
| 247 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) |
| 248 |
Traceback (most recent call last): |
| 249 |
Exception: connection closed after receiving N bytes |
| 250 |
|
| 251 |
|
| 252 |
$ rm -f error.log |
| 253 |
|
| 254 |
Now move on to partial server responses |
| 255 |
======================================= |
| 256 |
|
| 257 |
Server sends a single character from the HTTP response line |
| 258 |
----------------------------------------------------------- |
| 259 |
|
| 260 |
$ hg serve --config badserver.close-after-send-bytes=1 -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 261 |
$ cat hg.pid > $DAEMON_PIDS |
| 262 |
|
| 263 |
$ hg clone http://localhost:$HGPORT/ clone |
| 264 |
abort: error: bad HTTP status line: H |
| 265 |
[100] |
| 266 |
|
| 267 |
$ killdaemons.py $DAEMON_PIDS |
| 268 |
|
| 269 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 270 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 271 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 272 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 273 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 274 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 275 |
readline(*) -> (2) \r\n (glob) |
| 276 |
sendall(1 from 160) -> (0) H |
| 277 |
write limit reached; closing socket |
| 278 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) |
| 279 |
Traceback (most recent call last): |
| 280 |
Exception: connection closed after sending N bytes |
| 281 |
|
| 282 |
|
| 283 |
$ rm -f error.log |
| 284 |
|
| 285 |
Server sends an incomplete capabilities response body |
| 286 |
----------------------------------------------------- |
| 287 |
|
| 288 |
$ hg serve \ |
| 289 |
> --config badserver.close-after-send-patterns='batch branchmap bund' \ |
| 290 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 291 |
$ cat hg.pid > $DAEMON_PIDS |
| 292 |
|
| 293 |
$ hg clone http://localhost:$HGPORT/ clone |
| 294 |
abort: HTTP request error (incomplete response; expected * bytes got 20) (glob) |
| 295 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 296 |
[255] |
| 297 |
|
| 298 |
$ killdaemons.py $DAEMON_PIDS |
| 299 |
|
| 300 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 301 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 302 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 303 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 304 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 305 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 306 |
readline(*) -> (2) \r\n (glob) |
| 307 |
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: *\r\n\r\n (glob) |
| 308 |
sendall(20 from *) -> (0) batch branchmap bund (glob) |
| 309 |
write limit reached; closing socket |
| 310 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) |
| 311 |
Traceback (most recent call last): |
| 312 |
Exception: connection closed after sending N bytes |
| 313 |
|
| 314 |
|
| 315 |
$ rm -f error.log |
| 316 |
|
| 317 |
Server sends incomplete headers for batch request |
| 318 |
------------------------------------------------- |
| 319 |
|
| 320 |
$ hg serve \ |
| 321 |
> --config badserver.close-after-send-patterns='(.*Content-Type: applicat){2}' \ |
| 322 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 323 |
$ cat hg.pid > $DAEMON_PIDS |
| 324 |
|
| 325 |
TODO this output is horrible |
| 326 |
|
| 327 |
$ hg clone http://localhost:$HGPORT/ clone |
| 328 |
abort: 'http://localhost:$HGPORT/' does not appear to be an hg repository: |
| 329 |
---%<--- (applicat) |
| 330 |
|
| 331 |
---%<--- |
| 332 |
|
| 333 |
[255] |
| 334 |
|
| 335 |
$ killdaemons.py $DAEMON_PIDS |
| 336 |
|
| 337 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 338 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 339 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 340 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 341 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 342 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 343 |
readline(*) -> (2) \r\n (glob) |
| 344 |
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: *\r\n\r\n (glob) |
| 345 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 346 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 347 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 348 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 349 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 350 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 351 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 352 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 353 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 354 |
readline(*) -> (2) \r\n (glob) |
| 355 |
sendall(118 from 159) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: applicat |
| 356 |
write limit reached; closing socket |
| 357 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) |
| 358 |
Traceback (most recent call last): |
| 359 |
Exception: connection closed after sending N bytes |
| 360 |
|
| 361 |
|
| 362 |
$ rm -f error.log |
| 363 |
|
| 364 |
Server sends an incomplete HTTP response body to batch request |
| 365 |
-------------------------------------------------------------- |
| 366 |
|
| 367 |
$ hg serve \ |
| 368 |
> --config badserver.close-after-send-patterns=96ee1d7354c4ad7372047672 \ |
| 369 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 370 |
$ cat hg.pid > $DAEMON_PIDS |
| 371 |
|
| 372 |
$ hg clone http://localhost:$HGPORT/ clone |
| 373 |
abort: unexpected response: |
| 374 |
'96ee1d7354c4ad7372047672' |
| 375 |
[255] |
| 376 |
|
| 377 |
$ killdaemons.py $DAEMON_PIDS |
| 378 |
|
| 379 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 380 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 381 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 382 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 383 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 384 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 385 |
readline(*) -> (2) \r\n (glob) |
| 386 |
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: *\r\n\r\n (glob) |
| 387 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 388 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 389 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 390 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 391 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 392 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 393 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 394 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 395 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 396 |
readline(*) -> (2) \r\n (glob) |
| 397 |
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 |
| 398 |
sendall(24 from 42) -> (0) 96ee1d7354c4ad7372047672 |
| 399 |
write limit reached; closing socket |
| 400 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) |
| 401 |
Traceback (most recent call last): |
| 402 |
Exception: connection closed after sending N bytes |
| 403 |
|
| 404 |
|
| 405 |
$ rm -f error.log |
| 406 |
|
| 407 |
Server sends incomplete headers for getbundle response |
| 408 |
------------------------------------------------------ |
| 409 |
|
| 410 |
$ hg serve \ |
| 411 |
> --config badserver.close-after-send-patterns='(.*Content-Type: application/mercuri){3}' \ |
| 412 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 413 |
$ cat hg.pid > $DAEMON_PIDS |
| 414 |
|
| 415 |
TODO this output is terrible |
| 416 |
|
| 417 |
$ hg clone http://localhost:$HGPORT/ clone |
| 418 |
requesting all changes |
| 419 |
abort: 'http://localhost:$HGPORT/' does not appear to be an hg repository: |
| 420 |
---%<--- (application/mercuri) |
| 421 |
|
| 422 |
---%<--- |
| 423 |
|
| 424 |
[255] |
| 425 |
|
| 426 |
$ killdaemons.py $DAEMON_PIDS |
| 427 |
|
| 428 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 429 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 430 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 431 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 432 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 433 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 434 |
readline(*) -> (2) \r\n (glob) |
| 435 |
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: *\r\n\r\n (glob) |
| 436 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 437 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 438 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 439 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 440 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 441 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 442 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 443 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 444 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 445 |
readline(*) -> (2) \r\n (glob) |
| 446 |
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 |
| 447 |
sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
| 448 |
readline(~) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
| 449 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 450 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 451 |
readline(*) -> (496) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adelta-compression%253Dnone%252Czlib%252Czstd%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob) |
| 452 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 453 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 454 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 455 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 456 |
readline(*) -> (2) \r\n (glob) |
| 457 |
sendall(129 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercuri |
| 458 |
write limit reached; closing socket |
| 459 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 460 |
Traceback (most recent call last): |
| 461 |
Exception: connection closed after sending N bytes |
| 462 |
|
| 463 |
|
| 464 |
$ rm -f error.log |
| 465 |
|
| 466 |
Server stops before it sends transfer encoding |
| 467 |
---------------------------------------------- |
| 468 |
|
| 469 |
$ hg serve \ |
| 470 |
> --config badserver.close-after-send-patterns="Transfer-Encoding: chunke" \ |
| 471 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 472 |
$ cat hg.pid > $DAEMON_PIDS |
| 473 |
|
| 474 |
$ hg clone http://localhost:$HGPORT/ clone |
| 475 |
requesting all changes |
| 476 |
abort: stream ended unexpectedly (got 0 bytes, expected 1) |
| 477 |
[255] |
| 478 |
|
| 479 |
$ killdaemons.py $DAEMON_PIDS |
| 480 |
|
| 481 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -6 |
| 482 |
sendall(162 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: chunke |
| 483 |
write limit reached; closing socket |
| 484 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 485 |
Traceback (most recent call last): |
| 486 |
Exception: connection closed after sending N bytes |
| 487 |
|
| 488 |
$ rm -f error.log |
| 489 |
|
| 490 |
Server sends empty HTTP body for getbundle |
| 491 |
------------------------------------------ |
| 492 |
|
| 493 |
$ hg serve \ |
| 494 |
> --config badserver.close-after-send-patterns='Transfer-Encoding: chunked\r\n\r\n' \ |
| 495 |
> -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: HTTP request error (incomplete response) |
| 501 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 502 |
[255] |
| 503 |
|
| 504 |
$ killdaemons.py $DAEMON_PIDS |
| 505 |
|
| 506 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 507 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 508 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 509 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 510 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 511 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 512 |
readline(*) -> (2) \r\n (glob) |
| 513 |
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: *\r\n\r\n (glob) |
| 514 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 515 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 516 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 517 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 518 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 519 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 520 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 521 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 522 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 523 |
readline(*) -> (2) \r\n (glob) |
| 524 |
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 |
| 525 |
sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
| 526 |
readline(~) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
| 527 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 528 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 529 |
readline(*) -> (496) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adelta-compression%253Dnone%252Czlib%252Czstd%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n (glob) |
| 530 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 531 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 532 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 533 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 534 |
readline(*) -> (2) \r\n (glob) |
| 535 |
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 |
| 536 |
write limit reached; closing socket |
| 537 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 538 |
Traceback (most recent call last): |
| 539 |
Exception: connection closed after sending N bytes |
| 540 |
|
| 541 |
|
| 542 |
$ rm -f error.log |
| 543 |
|
| 544 |
Server sends partial compression string |
| 545 |
--------------------------------------- |
| 546 |
|
| 547 |
$ hg serve \ |
| 548 |
> --config badserver.close-after-send-patterns='4\r\nHG20\r\n' \ |
| 549 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 550 |
$ cat hg.pid > $DAEMON_PIDS |
| 551 |
|
| 552 |
$ hg clone http://localhost:$HGPORT/ clone |
| 553 |
requesting all changes |
| 554 |
abort: HTTP request error (incomplete response) |
| 555 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 556 |
[255] |
| 557 |
|
| 558 |
$ killdaemons.py $DAEMON_PIDS |
| 559 |
|
| 560 |
$ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py |
| 561 |
readline(~) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n |
| 562 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 563 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 564 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 565 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 566 |
readline(*) -> (2) \r\n (glob) |
| 567 |
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: *\r\n\r\n (glob) |
| 568 |
sendall(*) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob) |
| 569 |
readline(~) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
| 570 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 571 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 572 |
readline(*) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) |
| 573 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 574 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 575 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 576 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 577 |
readline(*) -> (2) \r\n (glob) |
| 578 |
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 |
| 579 |
sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
| 580 |
readline(~) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
| 581 |
readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
| 582 |
readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
| 583 |
readline(~) -> (496) x-hgarg-1: bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adelta-compression%253Dnone%252Czlib%252Czstd%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n |
| 584 |
readline(*) -> (61) x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n (glob) |
| 585 |
readline(*) -> (35) accept: application/mercurial-0.1\r\n (glob) |
| 586 |
readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
| 587 |
readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
| 588 |
readline(*) -> (2) \r\n (glob) |
| 589 |
sendall(167) -> 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 |
| 590 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 591 |
sendall(9) -> 4\r\nnone\r\n |
| 592 |
sendall(9 from 9) -> (0) 4\r\nHG20\r\n |
| 593 |
write limit reached; closing socket |
| 594 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 595 |
Traceback (most recent call last): |
| 596 |
Exception: connection closed after sending N bytes |
| 597 |
|
| 598 |
|
| 599 |
$ rm -f error.log |
| 600 |
|
| 601 |
Server sends partial bundle2 header magic |
| 602 |
----------------------------------------- |
| 603 |
|
| 604 |
$ hg serve \ |
| 605 |
> --config badserver.close-after-send-patterns='4\r\nHG2' \ |
| 606 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 607 |
$ cat hg.pid > $DAEMON_PIDS |
| 608 |
|
| 609 |
$ hg clone http://localhost:$HGPORT/ clone |
| 610 |
requesting all changes |
| 611 |
abort: HTTP request error (incomplete response*) (glob) |
| 612 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 613 |
[255] |
| 614 |
|
| 615 |
$ killdaemons.py $DAEMON_PIDS |
| 616 |
|
| 617 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -9 |
| 618 |
sendall(167) -> 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 |
| 619 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 620 |
sendall(9) -> 4\r\nnone\r\n |
| 621 |
sendall(6 from 9) -> (0) 4\r\nHG2 |
| 622 |
write limit reached; closing socket |
| 623 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 624 |
Traceback (most recent call last): |
| 625 |
Exception: connection closed after sending N bytes |
| 626 |
|
| 627 |
$ rm -f error.log |
| 628 |
|
| 629 |
Server sends incomplete bundle2 stream params length |
| 630 |
---------------------------------------------------- |
| 631 |
|
| 632 |
$ hg serve \ |
| 633 |
> --config badserver.close-after-send-patterns='4\r\n\0\0\0' \ |
| 634 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 635 |
$ cat hg.pid > $DAEMON_PIDS |
| 636 |
|
| 637 |
$ hg clone http://localhost:$HGPORT/ clone |
| 638 |
requesting all changes |
| 639 |
abort: HTTP request error (incomplete response*) (glob) |
| 640 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 641 |
[255] |
| 642 |
|
| 643 |
$ killdaemons.py $DAEMON_PIDS |
| 644 |
|
| 645 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 |
| 646 |
sendall(167) -> 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 |
| 647 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 648 |
sendall(9) -> 4\r\nnone\r\n |
| 649 |
sendall(9) -> 4\r\nHG20\r\n |
| 650 |
sendall(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) |
| 651 |
write limit reached; closing socket |
| 652 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 653 |
Traceback (most recent call last): |
| 654 |
Exception: connection closed after sending N bytes |
| 655 |
|
| 656 |
$ rm -f error.log |
| 657 |
|
| 658 |
Servers stops after bundle2 stream params header |
| 659 |
------------------------------------------------ |
| 660 |
|
| 661 |
$ hg serve \ |
| 662 |
> --config badserver.close-after-send-patterns='4\r\n\0\0\0\0\r\n' \ |
| 663 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 664 |
$ cat hg.pid > $DAEMON_PIDS |
| 665 |
|
| 666 |
$ hg clone http://localhost:$HGPORT/ clone |
| 667 |
requesting all changes |
| 668 |
abort: HTTP request error (incomplete response) |
| 669 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 670 |
[255] |
| 671 |
|
| 672 |
$ killdaemons.py $DAEMON_PIDS |
| 673 |
|
| 674 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 |
| 675 |
sendall(167) -> 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 |
| 676 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 677 |
sendall(9) -> 4\r\nnone\r\n |
| 678 |
sendall(9) -> 4\r\nHG20\r\n |
| 679 |
sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 680 |
write limit reached; closing socket |
| 681 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 682 |
Traceback (most recent call last): |
| 683 |
Exception: connection closed after sending N bytes |
| 684 |
|
| 685 |
$ rm -f error.log |
| 686 |
|
| 687 |
Server stops sending after bundle2 part header length |
| 688 |
----------------------------------------------------- |
| 689 |
|
| 690 |
$ hg serve \ |
| 691 |
> --config badserver.close-after-send-patterns='4\r\n\0\0\0\)\r\n' \ |
| 692 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 693 |
$ cat hg.pid > $DAEMON_PIDS |
| 694 |
|
| 695 |
$ hg clone http://localhost:$HGPORT/ clone |
| 696 |
requesting all changes |
| 697 |
abort: HTTP request error (incomplete response) |
| 698 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 699 |
[255] |
| 700 |
|
| 701 |
$ killdaemons.py $DAEMON_PIDS |
| 702 |
|
| 703 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
| 704 |
sendall(167) -> 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 |
| 705 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 706 |
sendall(9) -> 4\r\nnone\r\n |
| 707 |
sendall(9) -> 4\r\nHG20\r\n |
| 708 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 709 |
sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 710 |
write limit reached; closing socket |
| 711 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 712 |
Traceback (most recent call last): |
| 713 |
Exception: connection closed after sending N bytes |
| 714 |
|
| 715 |
$ rm -f error.log |
| 716 |
|
| 717 |
Server stops sending after bundle2 part header |
| 718 |
---------------------------------------------- |
| 719 |
|
| 720 |
$ hg serve \ |
| 721 |
> --config badserver.close-after-send-patterns="version03nbchanges1\\r\\n" \ |
| 722 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 723 |
$ cat hg.pid > $DAEMON_PIDS |
| 724 |
|
| 725 |
$ hg clone http://localhost:$HGPORT/ clone |
| 726 |
requesting all changes |
| 727 |
adding changesets |
| 728 |
transaction abort! |
| 729 |
rollback completed |
| 730 |
abort: HTTP request error (incomplete response) |
| 731 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 732 |
[255] |
| 733 |
|
| 734 |
$ killdaemons.py $DAEMON_PIDS |
| 735 |
|
| 736 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
| 737 |
sendall(167) -> 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 |
| 738 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 739 |
sendall(9) -> 4\r\nnone\r\n |
| 740 |
sendall(9) -> 4\r\nHG20\r\n |
| 741 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 742 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 743 |
sendall(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 744 |
write limit reached; closing socket |
| 745 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 746 |
Traceback (most recent call last): |
| 747 |
Exception: connection closed after sending N bytes |
| 748 |
|
| 749 |
$ rm -f error.log |
| 750 |
|
| 751 |
Server stops after bundle2 part payload chunk size |
| 752 |
-------------------------------------------------- |
| 753 |
|
| 754 |
$ hg serve \ |
| 755 |
> --config badserver.close-after-send-patterns='1dc\r\n.......' \ |
| 756 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 757 |
$ cat hg.pid > $DAEMON_PIDS |
| 758 |
|
| 759 |
$ hg clone http://localhost:$HGPORT/ clone |
| 760 |
requesting all changes |
| 761 |
adding changesets |
| 762 |
transaction abort! |
| 763 |
rollback completed |
| 764 |
abort: HTTP request error (incomplete response*) (glob) |
| 765 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 766 |
[255] |
| 767 |
|
| 768 |
$ killdaemons.py $DAEMON_PIDS |
| 769 |
|
| 770 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 |
| 771 |
sendall(167) -> 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 |
| 772 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 773 |
sendall(9) -> 4\r\nnone\r\n |
| 774 |
sendall(9) -> 4\r\nHG20\r\n |
| 775 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 776 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 777 |
sendall(47) -> 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 778 |
sendall(9) -> 4\\r\\n\x00\x00\x01\xdc\\r\\n (esc) |
| 779 |
sendall(12 from 483) -> (0) 1dc\\r\\n\x00\x00\x00\xb4\x96\xee\x1d (esc) |
| 780 |
write limit reached; closing socket |
| 781 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 782 |
Traceback (most recent call last): |
| 783 |
Exception: connection closed after sending N bytes |
| 784 |
|
| 785 |
$ rm -f error.log |
| 786 |
|
| 787 |
Server stops sending in middle of bundle2 payload chunk |
| 788 |
------------------------------------------------------- |
| 789 |
|
| 790 |
$ hg serve \ |
| 791 |
> --config badserver.close-after-send-patterns=':jL\0\0\x00\0\0\0\0\0\0\0\r\n' \ |
| 792 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 793 |
$ cat hg.pid > $DAEMON_PIDS |
| 794 |
|
| 795 |
$ hg clone http://localhost:$HGPORT/ clone |
| 796 |
requesting all changes |
| 797 |
adding changesets |
| 798 |
transaction abort! |
| 799 |
rollback completed |
| 800 |
abort: HTTP request error (incomplete response) |
| 801 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 802 |
[255] |
| 803 |
|
| 804 |
$ killdaemons.py $DAEMON_PIDS |
| 805 |
|
| 806 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 |
| 807 |
sendall(167) -> 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 |
| 808 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 809 |
sendall(9) -> 4\r\nnone\r\n |
| 810 |
sendall(9) -> 4\r\nHG20\r\n |
| 811 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 812 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 813 |
sendall(47) -> 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 814 |
sendall(9) -> 4\\r\\n\x00\x00\x01\xdc\\r\\n (esc) |
| 815 |
sendall(483 from 483) -> (0) 1dc\\r\\n\x00\x00\x00\xb4\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\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa3j=\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\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00j\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\x00\x00\\r\\n (esc) |
| 816 |
write limit reached; closing socket |
| 817 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 818 |
Traceback (most recent call last): |
| 819 |
Exception: connection closed after sending N bytes |
| 820 |
|
| 821 |
$ rm -f error.log |
| 822 |
|
| 823 |
Server stops sending after 0 length payload chunk size |
| 824 |
------------------------------------------------------ |
| 825 |
|
| 826 |
$ hg serve \ |
| 827 |
> --config badserver.close-after-send-patterns=LISTKEYS \ |
| 828 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 829 |
$ cat hg.pid > $DAEMON_PIDS |
| 830 |
|
| 831 |
$ hg clone http://localhost:$HGPORT/ clone |
| 832 |
requesting all changes |
| 833 |
adding changesets |
| 834 |
adding manifests |
| 835 |
adding file changes |
| 836 |
transaction abort! |
| 837 |
rollback completed |
| 838 |
abort: HTTP request error (incomplete response*) (glob) |
| 839 |
(this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) |
| 840 |
[255] |
| 841 |
|
| 842 |
$ killdaemons.py $DAEMON_PIDS |
| 843 |
|
| 844 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16 |
| 845 |
sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
| 846 |
sendall(9) -> 4\r\nnone\r\n |
| 847 |
sendall(9) -> 4\r\nHG20\r\n |
| 848 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 849 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 850 |
sendall(47) -> 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 851 |
sendall(9) -> 4\\r\\n\x00\x00\x01\xdc\\r\\n (esc) |
| 852 |
sendall(483) -> 1dc\\r\\n\x00\x00\x00\xb4\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\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa3j=\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\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00j\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\x00\x00\\r\\n (esc) |
| 853 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 854 |
sendall(9) -> 4\\r\\n\x00\x00\x00 \\r\\n (esc) |
| 855 |
sendall(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc) |
| 856 |
write limit reached; closing socket |
| 857 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 858 |
Traceback (most recent call last): |
| 859 |
Exception: connection closed after sending N bytes |
| 860 |
|
| 861 |
$ rm -f error.log |
| 862 |
|
| 863 |
Server stops sending after 0 part bundle part header (indicating end of bundle2 payload) |
| 864 |
---------------------------------------------------------------------------------------- |
| 865 |
|
| 866 |
This is before the 0 size chunked transfer part that signals end of HTTP response. |
| 867 |
|
| 868 |
$ hg serve \ |
| 869 |
> --config badserver.close-after-send-patterns='(.*4\r\n\0\0\0\0\r\n){5}' \ |
| 870 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 871 |
$ cat hg.pid > $DAEMON_PIDS |
| 872 |
|
| 873 |
$ hg clone http://localhost:$HGPORT/ clone |
| 874 |
requesting all changes |
| 875 |
adding changesets |
| 876 |
adding manifests |
| 877 |
adding file changes |
| 878 |
added 1 changesets with 1 changes to 1 files |
| 879 |
new changesets 96ee1d7354c4 |
| 880 |
updating to branch default |
| 881 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 882 |
|
| 883 |
$ killdaemons.py $DAEMON_PIDS |
| 884 |
|
| 885 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -20 |
| 886 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 887 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 888 |
sendall(47) -> 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 889 |
sendall(9) -> 4\\r\\n\x00\x00\x01\xdc\\r\\n (esc) |
| 890 |
sendall(483) -> 1dc\\r\\n\x00\x00\x00\xb4\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\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa3j=\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\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00j\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\x00\x00\\r\\n (esc) |
| 891 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 892 |
sendall(9) -> 4\\r\\n\x00\x00\x00 \\r\\n (esc) |
| 893 |
sendall(38) -> 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc) |
| 894 |
sendall(9) -> 4\\r\\n\x00\x00\x00:\\r\\n (esc) |
| 895 |
sendall(64) -> 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n |
| 896 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 897 |
sendall(9) -> 4\\r\\n\x00\x00\x00#\\r\\n (esc) |
| 898 |
sendall(41) -> 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc) |
| 899 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 900 |
sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 901 |
write limit reached; closing socket |
| 902 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 903 |
Traceback (most recent call last): |
| 904 |
Exception: connection closed after sending N bytes |
| 905 |
|
| 906 |
$ rm -f error.log |
| 907 |
$ rm -rf clone |
| 908 |
|
| 909 |
Server sends a size 0 chunked-transfer size without terminating \r\n |
| 910 |
-------------------------------------------------------------------- |
| 911 |
|
| 912 |
$ hg serve \ |
| 913 |
> --config badserver.close-after-send-patterns="(.*4\\r\\n\0\0\0\0\\r\\n0\r\n)" \ |
| 914 |
> -p $HGPORT -d --pid-file=hg.pid -E error.log |
| 915 |
$ cat hg.pid > $DAEMON_PIDS |
| 916 |
|
| 917 |
$ hg clone http://localhost:$HGPORT/ clone |
| 918 |
requesting all changes |
| 919 |
adding changesets |
| 920 |
adding manifests |
| 921 |
adding file changes |
| 922 |
added 1 changesets with 1 changes to 1 files |
| 923 |
new changesets 96ee1d7354c4 |
| 924 |
updating to branch default |
| 925 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 926 |
|
| 927 |
$ killdaemons.py $DAEMON_PIDS |
| 928 |
|
| 929 |
$ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -21 |
| 930 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 931 |
sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
| 932 |
sendall(47) -> 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version03nbchanges1\\r\\n (esc) |
| 933 |
sendall(9) -> 4\\r\\n\x00\x00\x01\xdc\\r\\n (esc) |
| 934 |
sendall(483) -> 1dc\\r\\n\x00\x00\x00\xb4\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\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa3j=\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\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00j\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\x00\x00\\r\\n (esc) |
| 935 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 936 |
sendall(9) -> 4\\r\\n\x00\x00\x00 \\r\\n (esc) |
| 937 |
sendall(38) -> 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc) |
| 938 |
sendall(9) -> 4\\r\\n\x00\x00\x00:\\r\\n (esc) |
| 939 |
sendall(64) -> 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n |
| 940 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 941 |
sendall(9) -> 4\\r\\n\x00\x00\x00#\\r\\n (esc) |
| 942 |
sendall(41) -> 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc) |
| 943 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 944 |
sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
| 945 |
sendall(3 from 5) -> (0) 0\r\n |
| 946 |
write limit reached; closing socket |
| 947 |
$LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
| 948 |
Traceback (most recent call last): |
| 949 |
Exception: connection closed after sending N bytes |
| 950 |
|
| 951 |
$ rm -f error.log |
| 952 |
$ rm -rf clone |