Show More
@@ -75,7 +75,7 class socketproxy(object): | |||||
75 | object.__setattr__(self, '_closeaftersendbytes', closeaftersendbytes) |
|
75 | object.__setattr__(self, '_closeaftersendbytes', closeaftersendbytes) | |
76 |
|
76 | |||
77 | def __getattribute__(self, name): |
|
77 | def __getattribute__(self, name): | |
78 | if name in ('makefile',): |
|
78 | if name in ('makefile', 'sendall', '_writelog'): | |
79 | return object.__getattribute__(self, name) |
|
79 | return object.__getattribute__(self, name) | |
80 |
|
80 | |||
81 | return getattr(object.__getattribute__(self, '_orig'), name) |
|
81 | return getattr(object.__getattribute__(self, '_orig'), name) | |
@@ -86,6 +86,13 class socketproxy(object): | |||||
86 | def __setattr__(self, name, value): |
|
86 | def __setattr__(self, name, value): | |
87 | setattr(object.__getattribute__(self, '_orig'), name, value) |
|
87 | setattr(object.__getattribute__(self, '_orig'), name, value) | |
88 |
|
88 | |||
|
89 | def _writelog(self, msg): | |||
|
90 | msg = msg.replace(b'\r', b'\\r').replace(b'\n', b'\\n') | |||
|
91 | ||||
|
92 | object.__getattribute__(self, '_logfp').write(msg) | |||
|
93 | object.__getattribute__(self, '_logfp').write(b'\n') | |||
|
94 | object.__getattribute__(self, '_logfp').flush() | |||
|
95 | ||||
89 | def makefile(self, mode, bufsize): |
|
96 | def makefile(self, mode, bufsize): | |
90 | f = object.__getattribute__(self, '_orig').makefile(mode, bufsize) |
|
97 | f = object.__getattribute__(self, '_orig').makefile(mode, bufsize) | |
91 |
|
98 | |||
@@ -99,6 +106,38 class socketproxy(object): | |||||
99 | closeafterrecvbytes=closeafterrecvbytes, |
|
106 | closeafterrecvbytes=closeafterrecvbytes, | |
100 | closeaftersendbytes=closeaftersendbytes) |
|
107 | closeaftersendbytes=closeaftersendbytes) | |
101 |
|
108 | |||
|
109 | def sendall(self, data, flags=0): | |||
|
110 | remaining = object.__getattribute__(self, '_closeaftersendbytes') | |||
|
111 | ||||
|
112 | # No read limit. Call original function. | |||
|
113 | if not remaining: | |||
|
114 | result = object.__getattribute__(self, '_orig').sendall(data, flags) | |||
|
115 | self._writelog(b'sendall(%d) -> %s' % (len(data), data)) | |||
|
116 | return result | |||
|
117 | ||||
|
118 | if len(data) > remaining: | |||
|
119 | newdata = data[0:remaining] | |||
|
120 | else: | |||
|
121 | newdata = data | |||
|
122 | ||||
|
123 | remaining -= len(newdata) | |||
|
124 | ||||
|
125 | result = object.__getattribute__(self, '_orig').sendall(newdata, flags) | |||
|
126 | ||||
|
127 | self._writelog(b'sendall(%d from %d) -> (%d) %s' % ( | |||
|
128 | len(newdata), len(data), remaining, newdata)) | |||
|
129 | ||||
|
130 | object.__setattr__(self, '_closeaftersendbytes', remaining) | |||
|
131 | ||||
|
132 | if remaining <= 0: | |||
|
133 | self._writelog(b'write limit reached; closing socket') | |||
|
134 | object.__getattribute__(self, '_orig').shutdown(socket.SHUT_RDWR) | |||
|
135 | ||||
|
136 | raise Exception('connection closed after sending N bytes') | |||
|
137 | ||||
|
138 | return result | |||
|
139 | ||||
|
140 | ||||
102 | # We can't adjust __class__ on socket._fileobject, so define a proxy. |
|
141 | # We can't adjust __class__ on socket._fileobject, so define a proxy. | |
103 | class fileobjectproxy(object): |
|
142 | class fileobjectproxy(object): | |
104 | __slots__ = ( |
|
143 | __slots__ = ( |
This diff has been collapsed as it changes many lines, (510 lines changed) Show them Hide them | |||||
@@ -116,13 +116,15 Failure on subsequent HTTP request on th | |||||
116 | readline(115 from *) -> (*) host: localhost:$HGPORT\r\n (glob) |
|
116 | readline(115 from *) -> (*) host: localhost:$HGPORT\r\n (glob) | |
117 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
117 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
118 | readline(* from *) -> (2) \r\n (glob) |
|
118 | readline(* from *) -> (2) \r\n (glob) | |
119 | write(36) -> HTTP/1.1 200 Script output follows\r\n |
|
119 | sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
120 | write(23) -> Server: badhttpserver\r\n |
|
120 | sendall(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
121 | write(37) -> Date: $HTTP_DATE$\r\n |
|
121 | write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
122 | write(41) -> Content-Type: application/mercurial-0.1\r\n |
|
122 | write(23) -> Server: badhttpserver\r\n (no-py3 !) | |
123 | write(21) -> Content-Length: 450\r\n |
|
123 | write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !) | |
124 | write(2) -> \r\n |
|
124 | write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
125 | write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
125 | write(21) -> Content-Length: 450\r\n (no-py3 !) | |
|
126 | write(2) -> \r\n (no-py3 !) | |||
|
127 | write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
126 | readline(4? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) |
|
128 | readline(4? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) | |
127 | readline(1? from *) -> (1?) Accept-Encoding* (glob) |
|
129 | readline(1? from *) -> (1?) Accept-Encoding* (glob) | |
128 | read limit reached; closing socket |
|
130 | read limit reached; closing socket | |
@@ -157,13 +159,15 Failure to read getbundle HTTP request | |||||
157 | readline(213 from *) -> (*) host: localhost:$HGPORT\r\n (glob) |
|
159 | readline(213 from *) -> (*) host: localhost:$HGPORT\r\n (glob) | |
158 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
160 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
159 | readline(* from *) -> (2) \r\n (glob) |
|
161 | readline(* from *) -> (2) \r\n (glob) | |
160 | write(36) -> HTTP/1.1 200 Script output follows\r\n |
|
162 | sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
161 | write(23) -> Server: badhttpserver\r\n |
|
163 | sendall(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
162 | write(37) -> Date: $HTTP_DATE$\r\n |
|
164 | write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
163 | write(41) -> Content-Type: application/mercurial-0.1\r\n |
|
165 | write(23) -> Server: badhttpserver\r\n (no-py3 !) | |
164 | write(21) -> Content-Length: 450\r\n |
|
166 | write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !) | |
165 | write(2) -> \r\n |
|
167 | write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
166 | write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
168 | write(21) -> Content-Length: 450\r\n (no-py3 !) | |
|
169 | write(2) -> \r\n (no-py3 !) | |||
|
170 | write(450) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
167 | readline(13? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) |
|
171 | readline(13? from 65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n (glob) | |
168 | readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob) |
|
172 | readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob) | |
169 | readline(8? from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
173 | readline(8? from *) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -179,13 +183,15 Failure to read getbundle HTTP request | |||||
179 | readline(98 from *) -> (*) host: localhost:$HGPORT\r\n (glob) |
|
183 | readline(98 from *) -> (*) host: localhost:$HGPORT\r\n (glob) | |
180 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
184 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
181 | readline(* from *) -> (2) \r\n (glob) |
|
185 | readline(* from *) -> (2) \r\n (glob) | |
182 | write(36) -> HTTP/1.1 200 Script output follows\r\n |
|
186 | sendall(159) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !) | |
183 | write(23) -> Server: badhttpserver\r\n |
|
187 | sendall(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !) | |
184 | write(37) -> Date: $HTTP_DATE$\r\n |
|
188 | write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
185 | write(41) -> Content-Type: application/mercurial-0.1\r\n |
|
189 | write(23) -> Server: badhttpserver\r\n (no-py3 !) | |
186 | write(20) -> Content-Length: 42\r\n |
|
190 | write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !) | |
187 | write(2) -> \r\n |
|
191 | write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
188 | write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
|
192 | write(20) -> Content-Length: 42\r\n (no-py3 !) | |
|
193 | write(2) -> \r\n (no-py3 !) | |||
|
194 | write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !) | |||
189 | readline(* from 65537) -> (*) GET /?cmd=getbundle HTTP* (glob) |
|
195 | readline(* from 65537) -> (*) GET /?cmd=getbundle HTTP* (glob) | |
190 | read limit reached; closing socket |
|
196 | read limit reached; closing socket | |
191 | readline(304 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
|
197 | readline(304 from 65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n | |
@@ -214,13 +220,15 Now do a variation using POST to send ar | |||||
214 | readline(234 from *) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
220 | readline(234 from *) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
215 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
221 | readline(* from *) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
216 | readline(* from *) -> (2) \r\n (glob) |
|
222 | readline(* from *) -> (2) \r\n (glob) | |
217 | write(36) -> HTTP/1.1 200 Script output follows\r\n |
|
223 | sendall(160) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 463\r\n\r\n (py3 !) | |
218 | write(23) -> Server: badhttpserver\r\n |
|
224 | sendall(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
219 | write(37) -> Date: $HTTP_DATE$\r\n |
|
225 | write(36) -> HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
220 | write(41) -> Content-Type: application/mercurial-0.1\r\n |
|
226 | write(23) -> Server: badhttpserver\r\n (no-py3 !) | |
221 | write(21) -> Content-Length: 463\r\n |
|
227 | write(37) -> Date: $HTTP_DATE$\r\n (no-py3 !) | |
222 | write(2) -> \r\n |
|
228 | write(41) -> Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
223 | write(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
229 | write(21) -> Content-Length: 463\r\n (no-py3 !) | |
|
230 | write(2) -> \r\n (no-py3 !) | |||
|
231 | write(463) -> batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx httppostargs known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
224 |
readline(1?? from 65537) |
|
232 | readline(1?? from 65537) -> (27) POST /?cmd=batch HTTP/1.1\r\n (glob) | |
225 | readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob) |
|
233 | readline(1?? from *) -> (27) Accept-Encoding: identity\r\n (glob) | |
226 | readline(1?? from *) -> (41) content-type: application/mercurial-0.1\r\n (glob) |
|
234 | readline(1?? from *) -> (41) content-type: application/mercurial-0.1\r\n (glob) | |
@@ -245,7 +253,7 Now do a variation using POST to send ar | |||||
245 | Traceback (most recent call last): |
|
253 | Traceback (most recent call last): | |
246 | Exception: connection closed after receiving N bytes |
|
254 | Exception: connection closed after receiving N bytes | |
247 |
|
255 | |||
248 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
256 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !) | |
249 |
|
257 | |||
250 | $ rm -f error.log |
|
258 | $ rm -f error.log | |
251 |
|
259 | |||
@@ -269,13 +277,14 Server sends a single character from the | |||||
269 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
277 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
270 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
278 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
271 | readline(*) -> (2) \r\n (glob) |
|
279 | readline(*) -> (2) \r\n (glob) | |
272 |
|
|
280 | sendall(1 from 160) -> (0) H (py3 !) | |
|
281 | write(1 from 36) -> (0) H (no-py3 !) | |||
273 | write limit reached; closing socket |
|
282 | write limit reached; closing socket | |
274 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) |
|
283 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) | |
275 | Traceback (most recent call last): |
|
284 | Traceback (most recent call last): | |
276 | Exception: connection closed after sending N bytes |
|
285 | Exception: connection closed after sending N bytes | |
277 |
|
286 | |||
278 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
287 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !) | |
279 |
|
288 | |||
280 | $ rm -f error.log |
|
289 | $ rm -f error.log | |
281 |
|
290 | |||
@@ -298,13 +307,15 Server sends an incomplete capabilities | |||||
298 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
307 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
299 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
308 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
300 | readline(*) -> (2) \r\n (glob) |
|
309 | readline(*) -> (2) \r\n (glob) | |
301 | write(36 from 36) -> (144) HTTP/1.1 200 Script output follows\r\n |
|
310 | sendall(160 from 160) -> (20) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
302 | write(23 from 23) -> (121) Server: badhttpserver\r\n |
|
311 | sendall(20 from 450) -> (0) batch branchmap bund (py3 !) | |
303 | write(37 from 37) -> (84) Date: $HTTP_DATE$\r\n |
|
312 | write(36 from 36) -> (144) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
304 | write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n |
|
313 | write(23 from 23) -> (121) Server: badhttpserver\r\n (no-py3 !) | |
305 | write(21 from 21) -> (22) Content-Length: 450\r\n |
|
314 | write(37 from 37) -> (84) Date: $HTTP_DATE$\r\n (no-py3 !) | |
306 | write(2 from 2) -> (20) \r\n |
|
315 | write(41 from 41) -> (43) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
307 | write(20 from 450) -> (0) batch branchmap bund |
|
316 | write(21 from 21) -> (22) Content-Length: 450\r\n (no-py3 !) | |
|
317 | write(2 from 2) -> (20) \r\n (no-py3 !) | |||
|
318 | write(20 from 450) -> (0) batch branchmap bund (no-py3 !) | |||
308 | write limit reached; closing socket |
|
319 | write limit reached; closing socket | |
309 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) |
|
320 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob) | |
310 | Traceback (most recent call last): |
|
321 | Traceback (most recent call last): | |
@@ -337,13 +348,15 TODO this output is horrible | |||||
337 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
348 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
338 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
349 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
339 | readline(*) -> (2) \r\n (glob) |
|
350 | readline(*) -> (2) \r\n (glob) | |
340 | write(36 from 36) -> (692) HTTP/1.1 200 Script output follows\r\n |
|
351 | sendall(160 from 160) -> (568) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
341 | write(23 from 23) -> (669) Server: badhttpserver\r\n |
|
352 | sendall(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
342 | write(37 from 37) -> (632) Date: $HTTP_DATE$\r\n |
|
353 | write(36 from 36) -> (692) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
343 | write(41 from 41) -> (591) Content-Type: application/mercurial-0.1\r\n |
|
354 | write(23 from 23) -> (669) Server: badhttpserver\r\n (no-py3 !) | |
344 | write(21 from 21) -> (570) Content-Length: 450\r\n |
|
355 | write(37 from 37) -> (632) Date: $HTTP_DATE$\r\n (no-py3 !) | |
345 | write(2 from 2) -> (568) \r\n |
|
356 | write(41 from 41) -> (591) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
346 | write(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
357 | write(21 from 21) -> (570) Content-Length: 450\r\n (no-py3 !) | |
|
358 | write(2 from 2) -> (568) \r\n (no-py3 !) | |||
|
359 | write(450 from 450) -> (118) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
347 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
|
360 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n | |
348 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
361 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
349 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
362 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -353,16 +366,17 TODO this output is horrible | |||||
353 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
366 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
354 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
367 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
355 | readline(*) -> (2) \r\n (glob) |
|
368 | readline(*) -> (2) \r\n (glob) | |
356 | write(36 from 36) -> (82) HTTP/1.1 200 Script output follows\r\n |
|
369 | sendall(118 from 159) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: applicat (py3 !) | |
357 | write(23 from 23) -> (59) Server: badhttpserver\r\n |
|
370 | write(36 from 36) -> (82) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
358 | write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n |
|
371 | write(23 from 23) -> (59) Server: badhttpserver\r\n (no-py3 !) | |
359 | write(22 from 41) -> (0) Content-Type: applicat |
|
372 | write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n (no-py3 !) | |
|
373 | write(22 from 41) -> (0) Content-Type: applicat (no-py3 !) | |||
360 | write limit reached; closing socket |
|
374 | write limit reached; closing socket | |
361 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) |
|
375 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) | |
362 | Traceback (most recent call last): |
|
376 | Traceback (most recent call last): | |
363 | Exception: connection closed after sending N bytes |
|
377 | Exception: connection closed after sending N bytes | |
364 |
|
378 | |||
365 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
379 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !) | |
366 |
|
380 | |||
367 | $ rm -f error.log |
|
381 | $ rm -f error.log | |
368 |
|
382 | |||
@@ -389,13 +403,15 TODO client spews a stack due to uncaugh | |||||
389 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
403 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
390 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
404 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
391 | readline(*) -> (2) \r\n (glob) |
|
405 | readline(*) -> (2) \r\n (glob) | |
392 | write(36 from 36) -> (757) HTTP/1.1 200 Script output follows\r\n |
|
406 | sendall(160 from 160) -> (633) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
393 | write(23 from 23) -> (734) Server: badhttpserver\r\n |
|
407 | sendall(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
394 | write(37 from 37) -> (697) Date: $HTTP_DATE$\r\n |
|
408 | write(36 from 36) -> (757) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
395 | write(41 from 41) -> (656) Content-Type: application/mercurial-0.1\r\n |
|
409 | write(23 from 23) -> (734) Server: badhttpserver\r\n (no-py3 !) | |
396 | write(21 from 21) -> (635) Content-Length: 450\r\n |
|
410 | write(37 from 37) -> (697) Date: $HTTP_DATE$\r\n (no-py3 !) | |
397 | write(2 from 2) -> (633) \r\n |
|
411 | write(41 from 41) -> (656) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
398 | write(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
412 | write(21 from 21) -> (635) Content-Length: 450\r\n (no-py3 !) | |
|
413 | write(2 from 2) -> (633) \r\n (no-py3 !) | |||
|
414 | write(450 from 450) -> (183) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
399 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
|
415 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n | |
400 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
416 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
401 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
417 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -405,13 +421,15 TODO client spews a stack due to uncaugh | |||||
405 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
421 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
406 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
422 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
407 | readline(*) -> (2) \r\n (glob) |
|
423 | readline(*) -> (2) \r\n (glob) | |
408 | write(36 from 36) -> (147) HTTP/1.1 200 Script output follows\r\n |
|
424 | sendall(159 from 159) -> (24) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !) | |
409 | write(23 from 23) -> (124) Server: badhttpserver\r\n |
|
425 | sendall(24 from 42) -> (0) 96ee1d7354c4ad7372047672 (py3 !) | |
410 | write(37 from 37) -> (87) Date: $HTTP_DATE$\r\n |
|
426 | write(36 from 36) -> (147) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
411 | write(41 from 41) -> (46) Content-Type: application/mercurial-0.1\r\n |
|
427 | write(23 from 23) -> (124) Server: badhttpserver\r\n (no-py3 !) | |
412 | write(20 from 20) -> (26) Content-Length: 42\r\n |
|
428 | write(37 from 37) -> (87) Date: $HTTP_DATE$\r\n (no-py3 !) | |
413 | write(2 from 2) -> (24) \r\n |
|
429 | write(41 from 41) -> (46) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
414 | write(24 from 42) -> (0) 96ee1d7354c4ad7372047672 |
|
430 | write(20 from 20) -> (26) Content-Length: 42\r\n (no-py3 !) | |
|
431 | write(2 from 2) -> (24) \r\n (no-py3 !) | |||
|
432 | write(24 from 42) -> (0) 96ee1d7354c4ad7372047672 (no-py3 !) | |||
415 | write limit reached; closing socket |
|
433 | write limit reached; closing socket | |
416 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) |
|
434 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob) | |
417 | Traceback (most recent call last): |
|
435 | Traceback (most recent call last): | |
@@ -445,13 +463,15 TODO this output is terrible | |||||
445 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
463 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
446 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
464 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
447 | readline(*) -> (2) \r\n (glob) |
|
465 | readline(*) -> (2) \r\n (glob) | |
448 | write(36 from 36) -> (904) HTTP/1.1 200 Script output follows\r\n |
|
466 | sendall(160 from 160) -> (780) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
449 | write(23 from 23) -> (881) Server: badhttpserver\r\n |
|
467 | sendall(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
450 | write(37 from 37) -> (844) Date: $HTTP_DATE$\r\n |
|
468 | write(36 from 36) -> (904) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
451 | write(41 from 41) -> (803) Content-Type: application/mercurial-0.1\r\n |
|
469 | write(23 from 23) -> (881) Server: badhttpserver\r\n (no-py3 !) | |
452 | write(21 from 21) -> (782) Content-Length: 450\r\n |
|
470 | write(37 from 37) -> (844) Date: $HTTP_DATE$\r\n (no-py3 !) | |
453 | write(2 from 2) -> (780) \r\n |
|
471 | write(41 from 41) -> (803) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
454 | write(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
472 | write(21 from 21) -> (782) Content-Length: 450\r\n (no-py3 !) | |
|
473 | write(2 from 2) -> (780) \r\n (no-py3 !) | |||
|
474 | write(450 from 450) -> (330) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
455 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
|
475 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n | |
456 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
476 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
457 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
477 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -461,13 +481,15 TODO this output is terrible | |||||
461 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
481 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
462 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
482 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
463 | readline(*) -> (2) \r\n (glob) |
|
483 | readline(*) -> (2) \r\n (glob) | |
464 | write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n |
|
484 | sendall(159 from 159) -> (171) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !) | |
465 | write(23 from 23) -> (271) Server: badhttpserver\r\n |
|
485 | sendall(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !) | |
466 | write(37 from 37) -> (234) Date: $HTTP_DATE$\r\n |
|
486 | write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
467 | write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n |
|
487 | write(23 from 23) -> (271) Server: badhttpserver\r\n (no-py3 !) | |
468 | write(20 from 20) -> (173) Content-Length: 42\r\n |
|
488 | write(37 from 37) -> (234) Date: $HTTP_DATE$\r\n (no-py3 !) | |
469 | write(2 from 2) -> (171) \r\n |
|
489 | write(41 from 41) -> (193) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
470 | write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
|
490 | write(20 from 20) -> (173) Content-Length: 42\r\n (no-py3 !) | |
|
491 | write(2 from 2) -> (171) \r\n (no-py3 !) | |||
|
492 | write(42 from 42) -> (129) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !) | |||
471 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
|
493 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n | |
472 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
494 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
473 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
495 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -477,16 +499,17 TODO this output is terrible | |||||
477 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
499 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
478 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
500 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
479 | readline(*) -> (2) \r\n (glob) |
|
501 | readline(*) -> (2) \r\n (glob) | |
480 | write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n |
|
502 | sendall(129 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercuri (py3 !) | |
481 | write(23 from 23) -> (70) Server: badhttpserver\r\n |
|
503 | write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
482 | write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n |
|
504 | write(23 from 23) -> (70) Server: badhttpserver\r\n (no-py3 !) | |
483 | write(33 from 41) -> (0) Content-Type: application/mercuri |
|
505 | write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n (no-py3 !) | |
|
506 | write(33 from 41) -> (0) Content-Type: application/mercuri (no-py3 !) | |||
484 | write limit reached; closing socket |
|
507 | write limit reached; closing socket | |
485 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
|
508 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |
486 | Traceback (most recent call last): |
|
509 | Traceback (most recent call last): | |
487 | Exception: connection closed after sending N bytes |
|
510 | Exception: connection closed after sending N bytes | |
488 |
|
511 | |||
489 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
512 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !) | |
490 |
|
513 | |||
491 | $ rm -f error.log |
|
514 | $ rm -f error.log | |
492 |
|
515 | |||
@@ -502,11 +525,19 Server stops before it sends transfer en | |||||
502 |
|
525 | |||
503 | $ killdaemons.py $DAEMON_PIDS |
|
526 | $ killdaemons.py $DAEMON_PIDS | |
504 |
|
527 | |||
|
528 | #if py3 | |||
|
529 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -3 | |||
|
530 | Traceback (most recent call last): | |||
|
531 | Exception: connection closed after sending N bytes | |||
|
532 | ||||
|
533 | ||||
|
534 | #else | |||
505 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4 |
|
535 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4 | |
506 | Traceback (most recent call last): |
|
536 | Traceback (most recent call last): | |
507 | Exception: connection closed after sending N bytes |
|
537 | Exception: connection closed after sending N bytes | |
508 |
|
538 | |||
509 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
539 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n | |
|
540 | #endif | |||
510 |
|
541 | |||
511 | $ rm -f error.log |
|
542 | $ rm -f error.log | |
512 |
|
543 | |||
@@ -530,13 +561,15 Server sends empty HTTP body for getbund | |||||
530 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
561 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
531 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
562 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
532 | readline(*) -> (2) \r\n (glob) |
|
563 | readline(*) -> (2) \r\n (glob) | |
533 | write(36 from 36) -> (942) HTTP/1.1 200 Script output follows\r\n |
|
564 | sendall(160 from 160) -> (818) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
534 | write(23 from 23) -> (919) Server: badhttpserver\r\n |
|
565 | sendall(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
535 | write(37 from 37) -> (882) Date: $HTTP_DATE$\r\n |
|
566 | write(36 from 36) -> (942) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
536 | write(41 from 41) -> (841) Content-Type: application/mercurial-0.1\r\n |
|
567 | write(23 from 23) -> (919) Server: badhttpserver\r\n (no-py3 !) | |
537 | write(21 from 21) -> (820) Content-Length: 450\r\n |
|
568 | write(37 from 37) -> (882) Date: $HTTP_DATE$\r\n (no-py3 !) | |
538 | write(2 from 2) -> (818) \r\n |
|
569 | write(41 from 41) -> (841) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
539 | write(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
570 | write(21 from 21) -> (820) Content-Length: 450\r\n (no-py3 !) | |
|
571 | write(2 from 2) -> (818) \r\n (no-py3 !) | |||
|
572 | write(450 from 450) -> (368) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
540 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
|
573 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n | |
541 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
574 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
542 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
575 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -546,13 +579,15 Server sends empty HTTP body for getbund | |||||
546 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
579 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
547 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
580 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
548 | readline(*) -> (2) \r\n (glob) |
|
581 | readline(*) -> (2) \r\n (glob) | |
549 | write(36 from 36) -> (332) HTTP/1.1 200 Script output follows\r\n |
|
582 | sendall(159 from 159) -> (209) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !) | |
550 | write(23 from 23) -> (309) Server: badhttpserver\r\n |
|
583 | sendall(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !) | |
551 | write(37 from 37) -> (272) Date: $HTTP_DATE$\r\n |
|
584 | write(36 from 36) -> (332) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
552 | write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n |
|
585 | write(23 from 23) -> (309) Server: badhttpserver\r\n (no-py3 !) | |
553 | write(20 from 20) -> (211) Content-Length: 42\r\n |
|
586 | write(37 from 37) -> (272) Date: $HTTP_DATE$\r\n (no-py3 !) | |
554 | write(2 from 2) -> (209) \r\n |
|
587 | write(41 from 41) -> (231) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
555 | write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
|
588 | write(20 from 20) -> (211) Content-Length: 42\r\n (no-py3 !) | |
|
589 | write(2 from 2) -> (209) \r\n (no-py3 !) | |||
|
590 | write(42 from 42) -> (167) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !) | |||
556 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
|
591 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n | |
557 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
592 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
558 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
593 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -562,18 +597,19 Server sends empty HTTP body for getbund | |||||
562 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
597 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
563 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
598 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
564 | readline(*) -> (2) \r\n (glob) |
|
599 | readline(*) -> (2) \r\n (glob) | |
565 | write(36 from 36) -> (131) HTTP/1.1 200 Script output follows\r\n |
|
600 | sendall(167 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !) | |
566 | write(23 from 23) -> (108) Server: badhttpserver\r\n |
|
601 | write(36 from 36) -> (131) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
567 | write(37 from 37) -> (71) Date: $HTTP_DATE$\r\n |
|
602 | write(23 from 23) -> (108) Server: badhttpserver\r\n (no-py3 !) | |
568 | write(41 from 41) -> (30) Content-Type: application/mercurial-0.2\r\n |
|
603 | write(37 from 37) -> (71) Date: $HTTP_DATE$\r\n (no-py3 !) | |
569 | write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n |
|
604 | write(41 from 41) -> (30) Content-Type: application/mercurial-0.2\r\n (no-py3 !) | |
570 | write(2 from 2) -> (0) \r\n |
|
605 | write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n (no-py3 !) | |
|
606 | write(2 from 2) -> (0) \r\n (no-py3 !) | |||
571 | write limit reached; closing socket |
|
607 | write limit reached; closing socket | |
572 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
|
608 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |
573 | Traceback (most recent call last): |
|
609 | Traceback (most recent call last): | |
574 | Exception: connection closed after sending N bytes |
|
610 | Exception: connection closed after sending N bytes | |
575 |
|
611 | |||
576 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n |
|
612 | write(36) -> HTTP/1.1 500 Internal Server Error\r\n (no-py3 !) | |
577 |
|
613 | |||
578 | $ rm -f error.log |
|
614 | $ rm -f error.log | |
579 |
|
615 | |||
@@ -597,13 +633,15 Server sends partial compression string | |||||
597 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
633 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
598 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
634 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
599 | readline(*) -> (2) \r\n (glob) |
|
635 | readline(*) -> (2) \r\n (glob) | |
600 | write(36 from 36) -> (966) HTTP/1.1 200 Script output follows\r\n |
|
636 | sendall(160 from 160) -> (842) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 450\r\n\r\n (py3 !) | |
601 | write(23 from 23) -> (943) Server: badhttpserver\r\n |
|
637 | sendall(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (py3 !) | |
602 | write(37 from 37) -> (906) Date: $HTTP_DATE$\r\n |
|
638 | write(36 from 36) -> (966) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
603 | write(41 from 41) -> (865) Content-Type: application/mercurial-0.1\r\n |
|
639 | write(23 from 23) -> (943) Server: badhttpserver\r\n (no-py3 !) | |
604 | write(21 from 21) -> (844) Content-Length: 450\r\n |
|
640 | write(37 from 37) -> (906) Date: $HTTP_DATE$\r\n (no-py3 !) | |
605 | write(2 from 2) -> (842) \r\n |
|
641 | write(41 from 41) -> (865) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
606 | write(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
|
642 | write(21 from 21) -> (844) Content-Length: 450\r\n (no-py3 !) | |
|
643 | write(2 from 2) -> (842) \r\n (no-py3 !) | |||
|
644 | write(450 from 450) -> (392) batch branchmap $USUAL_BUNDLE2_CAPS_NO_PHASES$ changegroupsubset compression=none getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-py3 !) | |||
607 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n |
|
645 | readline(65537) -> (26) GET /?cmd=batch HTTP/1.1\r\n | |
608 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
646 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
609 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
647 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -613,13 +651,15 Server sends partial compression string | |||||
613 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
651 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
614 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
652 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
615 | readline(*) -> (2) \r\n (glob) |
|
653 | readline(*) -> (2) \r\n (glob) | |
616 | write(36 from 36) -> (356) HTTP/1.1 200 Script output follows\r\n |
|
654 | sendall(159 from 159) -> (233) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.1\r\nContent-Length: 42\r\n\r\n (py3 !) | |
617 | write(23 from 23) -> (333) Server: badhttpserver\r\n |
|
655 | sendall(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (py3 !) | |
618 | write(37 from 37) -> (296) Date: $HTTP_DATE$\r\n |
|
656 | write(36 from 36) -> (356) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
619 | write(41 from 41) -> (255) Content-Type: application/mercurial-0.1\r\n |
|
657 | write(23 from 23) -> (333) Server: badhttpserver\r\n (no-py3 !) | |
620 | write(20 from 20) -> (235) Content-Length: 42\r\n |
|
658 | write(37 from 37) -> (296) Date: $HTTP_DATE$\r\n (no-py3 !) | |
621 | write(2 from 2) -> (233) \r\n |
|
659 | write(41 from 41) -> (255) Content-Type: application/mercurial-0.1\r\n (no-py3 !) | |
622 | write(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; |
|
660 | write(20 from 20) -> (235) Content-Length: 42\r\n (no-py3 !) | |
|
661 | write(2 from 2) -> (233) \r\n (no-py3 !) | |||
|
662 | write(42 from 42) -> (191) 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; (no-py3 !) | |||
623 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n |
|
663 | readline(65537) -> (30) GET /?cmd=getbundle HTTP/1.1\r\n | |
624 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) |
|
664 | readline(*) -> (27) Accept-Encoding: identity\r\n (glob) | |
625 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) |
|
665 | readline(*) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) | |
@@ -629,21 +669,25 Server sends partial compression string | |||||
629 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) |
|
669 | readline(*) -> (2?) host: localhost:$HGPORT\r\n (glob) | |
630 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) |
|
670 | readline(*) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) | |
631 | readline(*) -> (2) \r\n (glob) |
|
671 | readline(*) -> (2) \r\n (glob) | |
632 | write(36 from 36) -> (155) HTTP/1.1 200 Script output follows\r\n |
|
672 | sendall(167 from 167) -> (24) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !) | |
633 | write(23 from 23) -> (132) Server: badhttpserver\r\n |
|
673 | sendall(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc) (py3 !) | |
634 | write(37 from 37) -> (95) Date: $HTTP_DATE$\r\n |
|
674 | sendall(9 from 9) -> (9) 4\r\nnone\r\n (py3 !) | |
635 | write(41 from 41) -> (54) Content-Type: application/mercurial-0.2\r\n |
|
675 | sendall(9 from 9) -> (0) 4\r\nHG20\r\n (py3 !) | |
636 | write(28 from 28) -> (26) Transfer-Encoding: chunked\r\n |
|
676 | write(36 from 36) -> (155) HTTP/1.1 200 Script output follows\r\n (no-py3 !) | |
637 |
write(2 from 2) -> (2 |
|
677 | write(23 from 23) -> (132) Server: badhttpserver\r\n (no-py3 !) | |
638 | write(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc) |
|
678 | write(37 from 37) -> (95) Date: $HTTP_DATE$\r\n (no-py3 !) | |
639 | write(9 from 9) -> (9) 4\r\nnone\r\n |
|
679 | write(41 from 41) -> (54) Content-Type: application/mercurial-0.2\r\n (no-py3 !) | |
640 | write(9 from 9) -> (0) 4\r\nHG20\r\n |
|
680 | write(28 from 28) -> (26) Transfer-Encoding: chunked\r\n (no-py3 !) | |
|
681 | write(2 from 2) -> (24) \r\n (no-py3 !) | |||
|
682 | write(6 from 6) -> (18) 1\\r\\n\x04\\r\\n (esc) (no-py3 !) | |||
|
683 | write(9 from 9) -> (9) 4\r\nnone\r\n (no-py3 !) | |||
|
684 | write(9 from 9) -> (0) 4\r\nHG20\r\n (no-py3 !) | |||
641 | write limit reached; closing socket |
|
685 | write limit reached; closing socket | |
642 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
|
686 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |
643 | Traceback (most recent call last): |
|
687 | Traceback (most recent call last): | |
644 | Exception: connection closed after sending N bytes |
|
688 | Exception: connection closed after sending N bytes | |
645 |
|
689 | |||
646 | write(27) -> 15\r\nInternal Server Error\r\n |
|
690 | write(27) -> 15\r\nInternal Server Error\r\n (no-py3 !) | |
647 |
|
691 | |||
648 | $ rm -f error.log |
|
692 | $ rm -f error.log | |
649 |
|
693 | |||
@@ -654,12 +698,26 Server sends partial bundle2 header magi | |||||
654 |
|
698 | |||
655 | $ hg clone http://localhost:$HGPORT/ clone |
|
699 | $ hg clone http://localhost:$HGPORT/ clone | |
656 | requesting all changes |
|
700 | requesting all changes | |
657 |
abort: HTTP request error (incomplete response |
|
701 | abort: HTTP request error (incomplete response) (py3 !) | |
|
702 | abort: HTTP request error (incomplete response; expected 4 bytes got 3) (no-py3 !) | |||
658 |
|
|
703 | (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) | |
659 | [255] |
|
704 | [255] | |
660 |
|
705 | |||
661 | $ killdaemons.py $DAEMON_PIDS |
|
706 | $ killdaemons.py $DAEMON_PIDS | |
662 |
|
707 | |||
|
708 | #if py3 | |||
|
709 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -9 | |||
|
710 | sendall(167 from 167) -> (21) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
711 | sendall(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc) | |||
|
712 | sendall(9 from 9) -> (6) 4\r\nnone\r\n | |||
|
713 | sendall(6 from 9) -> (0) 4\r\nHG2 | |||
|
714 | write limit reached; closing socket | |||
|
715 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
716 | Traceback (most recent call last): | |||
|
717 | Exception: connection closed after sending N bytes | |||
|
718 | ||||
|
719 | ||||
|
720 | #else | |||
663 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
|
721 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 | |
664 | write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n |
|
722 | write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n | |
665 | write(2 from 2) -> (21) \r\n |
|
723 | write(2 from 2) -> (21) \r\n | |
@@ -672,6 +730,7 Server sends partial bundle2 header magi | |||||
672 | Exception: connection closed after sending N bytes |
|
730 | Exception: connection closed after sending N bytes | |
673 |
|
731 | |||
674 | write(27) -> 15\r\nInternal Server Error\r\n |
|
732 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
733 | #endif | |||
675 |
|
734 | |||
676 | $ rm -f error.log |
|
735 | $ rm -f error.log | |
677 |
|
736 | |||
@@ -682,12 +741,27 Server sends incomplete bundle2 stream p | |||||
682 |
|
741 | |||
683 | $ hg clone http://localhost:$HGPORT/ clone |
|
742 | $ hg clone http://localhost:$HGPORT/ clone | |
684 | requesting all changes |
|
743 | requesting all changes | |
685 |
abort: HTTP request error (incomplete response |
|
744 | abort: HTTP request error (incomplete response) (py3 !) | |
|
745 | abort: HTTP request error (incomplete response; expected 4 bytes got 3) (no-py3 !) | |||
686 |
|
|
746 | (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) | |
687 | [255] |
|
747 | [255] | |
688 |
|
748 | |||
689 | $ killdaemons.py $DAEMON_PIDS |
|
749 | $ killdaemons.py $DAEMON_PIDS | |
690 |
|
750 | |||
|
751 | #if py3 | |||
|
752 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 | |||
|
753 | sendall(167 from 167) -> (30) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
754 | sendall(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc) | |||
|
755 | sendall(9 from 9) -> (15) 4\r\nnone\r\n | |||
|
756 | sendall(9 from 9) -> (6) 4\r\nHG20\r\n | |||
|
757 | sendall(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) | |||
|
758 | write limit reached; closing socket | |||
|
759 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
760 | Traceback (most recent call last): | |||
|
761 | Exception: connection closed after sending N bytes | |||
|
762 | ||||
|
763 | ||||
|
764 | #else | |||
691 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
|
765 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 | |
692 | write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n |
|
766 | write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n | |
693 | write(2 from 2) -> (30) \r\n |
|
767 | write(2 from 2) -> (30) \r\n | |
@@ -701,6 +775,7 Server sends incomplete bundle2 stream p | |||||
701 | Exception: connection closed after sending N bytes |
|
775 | Exception: connection closed after sending N bytes | |
702 |
|
776 | |||
703 | write(27) -> 15\r\nInternal Server Error\r\n |
|
777 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
778 | #endif | |||
704 |
|
779 | |||
705 | $ rm -f error.log |
|
780 | $ rm -f error.log | |
706 |
|
781 | |||
@@ -717,6 +792,20 Servers stops after bundle2 stream param | |||||
717 |
|
792 | |||
718 | $ killdaemons.py $DAEMON_PIDS |
|
793 | $ killdaemons.py $DAEMON_PIDS | |
719 |
|
794 | |||
|
795 | #if py3 | |||
|
796 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 | |||
|
797 | sendall(167 from 167) -> (33) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
798 | sendall(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc) | |||
|
799 | sendall(9 from 9) -> (18) 4\r\nnone\r\n | |||
|
800 | sendall(9 from 9) -> (9) 4\r\nHG20\r\n | |||
|
801 | sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
802 | write limit reached; closing socket | |||
|
803 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
804 | Traceback (most recent call last): | |||
|
805 | Exception: connection closed after sending N bytes | |||
|
806 | ||||
|
807 | ||||
|
808 | #else | |||
720 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
|
809 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 | |
721 | write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n |
|
810 | write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n | |
722 | write(2 from 2) -> (33) \r\n |
|
811 | write(2 from 2) -> (33) \r\n | |
@@ -730,6 +819,7 Servers stops after bundle2 stream param | |||||
730 | Exception: connection closed after sending N bytes |
|
819 | Exception: connection closed after sending N bytes | |
731 |
|
820 | |||
732 | write(27) -> 15\r\nInternal Server Error\r\n |
|
821 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
822 | #endif | |||
733 |
|
823 | |||
734 | $ rm -f error.log |
|
824 | $ rm -f error.log | |
735 |
|
825 | |||
@@ -746,6 +836,22 Server stops sending after bundle2 part | |||||
746 |
|
836 | |||
747 | $ killdaemons.py $DAEMON_PIDS |
|
837 | $ killdaemons.py $DAEMON_PIDS | |
748 |
|
838 | |||
|
839 | #if py3 | |||
|
840 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 | |||
|
841 | sendall(167 from 167) -> (42) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
842 | sendall(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc) | |||
|
843 | sendall(9 from 9) -> (27) 4\r\nnone\r\n | |||
|
844 | sendall(9 from 9) -> (18) 4\r\nHG20\r\n | |||
|
845 | sendall(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
846 | sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
847 | write limit reached; closing socket | |||
|
848 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
849 | Traceback (most recent call last): | |||
|
850 | Exception: connection closed after sending N bytes | |||
|
851 | ||||
|
852 | ||||
|
853 | #else | |||
|
854 | ||||
749 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13 |
|
855 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13 | |
750 | write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n |
|
856 | write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n | |
751 | write(2 from 2) -> (42) \r\n |
|
857 | write(2 from 2) -> (42) \r\n | |
@@ -760,6 +866,7 Server stops sending after bundle2 part | |||||
760 | Exception: connection closed after sending N bytes |
|
866 | Exception: connection closed after sending N bytes | |
761 |
|
867 | |||
762 | write(27) -> 15\r\nInternal Server Error\r\n |
|
868 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
869 | #endif | |||
763 |
|
870 | |||
764 | $ rm -f error.log |
|
871 | $ rm -f error.log | |
765 |
|
872 | |||
@@ -779,6 +886,22 Server stops sending after bundle2 part | |||||
779 |
|
886 | |||
780 | $ killdaemons.py $DAEMON_PIDS |
|
887 | $ killdaemons.py $DAEMON_PIDS | |
781 |
|
888 | |||
|
889 | #if py3 | |||
|
890 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 | |||
|
891 | sendall(167 from 167) -> (89) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
892 | sendall(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc) | |||
|
893 | sendall(9 from 9) -> (74) 4\r\nnone\r\n | |||
|
894 | sendall(9 from 9) -> (65) 4\r\nHG20\r\n | |||
|
895 | sendall(9 from 9) -> (56) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
896 | sendall(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
897 | sendall(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
898 | write limit reached; closing socket | |||
|
899 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
900 | Traceback (most recent call last): | |||
|
901 | Exception: connection closed after sending N bytes | |||
|
902 | ||||
|
903 | ||||
|
904 | #else | |||
782 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 |
|
905 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 | |
783 | write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n |
|
906 | write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n | |
784 | write(2 from 2) -> (89) \r\n |
|
907 | write(2 from 2) -> (89) \r\n | |
@@ -794,6 +917,7 Server stops sending after bundle2 part | |||||
794 | Exception: connection closed after sending N bytes |
|
917 | Exception: connection closed after sending N bytes | |
795 |
|
918 | |||
796 | write(27) -> 15\r\nInternal Server Error\r\n |
|
919 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
920 | #endif | |||
797 |
|
921 | |||
798 | $ rm -f error.log |
|
922 | $ rm -f error.log | |
799 |
|
923 | |||
@@ -807,12 +931,31 Server stops after bundle2 part payload | |||||
807 | adding changesets |
|
931 | adding changesets | |
808 | transaction abort! |
|
932 | transaction abort! | |
809 | rollback completed |
|
933 | rollback completed | |
810 |
abort: HTTP request error (incomplete response |
|
934 | abort: HTTP request error (incomplete response) (py3 !) | |
|
935 | abort: HTTP request error (incomplete response; expected 466 bytes got 7) (no-py3 !) | |||
811 |
|
|
936 | (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) | |
812 | [255] |
|
937 | [255] | |
813 |
|
938 | |||
814 | $ killdaemons.py $DAEMON_PIDS |
|
939 | $ killdaemons.py $DAEMON_PIDS | |
815 |
|
940 | |||
|
941 | #if py3 | |||
|
942 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 | |||
|
943 | sendall(167 from 167) -> (110) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
944 | sendall(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc) | |||
|
945 | sendall(9 from 9) -> (95) 4\r\nnone\r\n | |||
|
946 | sendall(9 from 9) -> (86) 4\r\nHG20\r\n | |||
|
947 | sendall(9 from 9) -> (77) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
948 | sendall(9 from 9) -> (68) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
949 | sendall(47 from 47) -> (21) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
950 | sendall(9 from 9) -> (12) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc) | |||
|
951 | sendall(12 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1d (esc) | |||
|
952 | write limit reached; closing socket | |||
|
953 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
954 | Traceback (most recent call last): | |||
|
955 | Exception: connection closed after sending N bytes | |||
|
956 | ||||
|
957 | ||||
|
958 | #else | |||
816 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15 |
|
959 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15 | |
817 | write(2 from 2) -> (110) \r\n |
|
960 | write(2 from 2) -> (110) \r\n | |
818 | write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc) |
|
961 | write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc) | |
@@ -829,6 +972,7 Server stops after bundle2 part payload | |||||
829 | Exception: connection closed after sending N bytes |
|
972 | Exception: connection closed after sending N bytes | |
830 |
|
973 | |||
831 | write(27) -> 15\r\nInternal Server Error\r\n |
|
974 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
975 | #endif | |||
832 |
|
976 | |||
833 | $ rm -f error.log |
|
977 | $ rm -f error.log | |
834 |
|
978 | |||
@@ -848,6 +992,24 Server stops sending in middle of bundle | |||||
848 |
|
992 | |||
849 | $ killdaemons.py $DAEMON_PIDS |
|
993 | $ killdaemons.py $DAEMON_PIDS | |
850 |
|
994 | |||
|
995 | #if py3 | |||
|
996 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 | |||
|
997 | sendall(167 from 167) -> (571) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n | |||
|
998 | sendall(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc) | |||
|
999 | sendall(9 from 9) -> (556) 4\r\nnone\r\n | |||
|
1000 | sendall(9 from 9) -> (547) 4\r\nHG20\r\n | |||
|
1001 | sendall(9 from 9) -> (538) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1002 | sendall(9 from 9) -> (529) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
1003 | sendall(47 from 47) -> (482) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
1004 | sendall(9 from 9) -> (473) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc) | |||
|
1005 | sendall(473 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc) | |||
|
1006 | write limit reached; closing socket | |||
|
1007 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
1008 | Traceback (most recent call last): | |||
|
1009 | Exception: connection closed after sending N bytes | |||
|
1010 | ||||
|
1011 | ||||
|
1012 | #else | |||
851 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16 |
|
1013 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16 | |
852 | write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n |
|
1014 | write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n | |
853 | write(2 from 2) -> (571) \r\n |
|
1015 | write(2 from 2) -> (571) \r\n | |
@@ -865,6 +1027,7 Server stops sending in middle of bundle | |||||
865 | Exception: connection closed after sending N bytes |
|
1027 | Exception: connection closed after sending N bytes | |
866 |
|
1028 | |||
867 | write(27) -> 15\r\nInternal Server Error\r\n |
|
1029 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
1030 | #endif | |||
868 |
|
1031 | |||
869 | $ rm -f error.log |
|
1032 | $ rm -f error.log | |
870 |
|
1033 | |||
@@ -881,12 +1044,33 Server stops sending after 0 length payl | |||||
881 | added 1 changesets with 1 changes to 1 files |
|
1044 | added 1 changesets with 1 changes to 1 files | |
882 | transaction abort! |
|
1045 | transaction abort! | |
883 | rollback completed |
|
1046 | rollback completed | |
884 |
abort: HTTP request error (incomplete response |
|
1047 | abort: HTTP request error (incomplete response) (py3 !) | |
|
1048 | abort: HTTP request error (incomplete response; expected 32 bytes got 9) (no-py3 !) | |||
885 |
|
|
1049 | (this may be an intermittent network failure; if the error persists, consider contacting the network or server operator) | |
886 | [255] |
|
1050 | [255] | |
887 |
|
1051 | |||
888 | $ killdaemons.py $DAEMON_PIDS |
|
1052 | $ killdaemons.py $DAEMON_PIDS | |
889 |
|
1053 | |||
|
1054 | #if py3 | |||
|
1055 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16 | |||
|
1056 | sendall(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc) | |||
|
1057 | sendall(9 from 9) -> (587) 4\r\nnone\r\n | |||
|
1058 | sendall(9 from 9) -> (578) 4\r\nHG20\r\n | |||
|
1059 | sendall(9 from 9) -> (569) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1060 | sendall(9 from 9) -> (560) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
1061 | sendall(47 from 47) -> (513) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
1062 | sendall(9 from 9) -> (504) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc) | |||
|
1063 | sendall(473 from 473) -> (31) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc) | |||
|
1064 | sendall(9 from 9) -> (22) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1065 | sendall(9 from 9) -> (13) 4\\r\\n\x00\x00\x00 \\r\\n (esc) | |||
|
1066 | sendall(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc) | |||
|
1067 | write limit reached; closing socket | |||
|
1068 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
1069 | Traceback (most recent call last): | |||
|
1070 | Exception: connection closed after sending N bytes | |||
|
1071 | ||||
|
1072 | ||||
|
1073 | #else | |||
890 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17 |
|
1074 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17 | |
891 | write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc) |
|
1075 | write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc) | |
892 | write(9 from 9) -> (587) 4\r\nnone\r\n |
|
1076 | write(9 from 9) -> (587) 4\r\nnone\r\n | |
@@ -905,6 +1089,7 Server stops sending after 0 length payl | |||||
905 | Exception: connection closed after sending N bytes |
|
1089 | Exception: connection closed after sending N bytes | |
906 |
|
1090 | |||
907 | write(27) -> 15\r\nInternal Server Error\r\n |
|
1091 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
1092 | #endif | |||
908 |
|
1093 | |||
909 | $ rm -f error.log |
|
1094 | $ rm -f error.log | |
910 |
|
1095 | |||
@@ -927,6 +1112,35 This is before the 0 size chunked transf | |||||
927 |
|
1112 | |||
928 | $ killdaemons.py $DAEMON_PIDS |
|
1113 | $ killdaemons.py $DAEMON_PIDS | |
929 |
|
1114 | |||
|
1115 | #if py3 | |||
|
1116 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -25 | |||
|
1117 | sendall(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1118 | sendall(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
1119 | sendall(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
1120 | sendall(9 from 9) -> (786) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc) | |||
|
1121 | sendall(473 from 473) -> (313) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc) | |||
|
1122 | sendall(9 from 9) -> (304) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1123 | sendall(9 from 9) -> (295) 4\\r\\n\x00\x00\x00 \\r\\n (esc) | |||
|
1124 | sendall(38 from 38) -> (257) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc) | |||
|
1125 | sendall(9 from 9) -> (248) 4\\r\\n\x00\x00\x00:\\r\\n (esc) | |||
|
1126 | sendall(64 from 64) -> (184) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n | |||
|
1127 | sendall(9 from 9) -> (175) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1128 | sendall(9 from 9) -> (166) 4\\r\\n\x00\x00\x00#\\r\\n (esc) | |||
|
1129 | sendall(41 from 41) -> (125) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc) | |||
|
1130 | sendall(9 from 9) -> (116) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1131 | sendall(9 from 9) -> (107) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc) | |||
|
1132 | sendall(35 from 35) -> (72) 1d\\r\\n\x16cache:rev-branch-cache\x00\x00\x00\x03\x00\x00\\r\\n (esc) | |||
|
1133 | sendall(9 from 9) -> (63) 4\\r\\n\x00\x00\x00'\\r\\n (esc) | |||
|
1134 | sendall(45 from 45) -> (18) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc) | |||
|
1135 | sendall(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1136 | sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1137 | write limit reached; closing socket | |||
|
1138 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
1139 | Traceback (most recent call last): | |||
|
1140 | Exception: connection closed after sending N bytes | |||
|
1141 | ||||
|
1142 | ||||
|
1143 | #else | |||
930 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26 |
|
1144 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26 | |
931 |
|
|
1145 | write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |
932 |
write(9 from 9) -> (842) 4\\ |
|
1146 | write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |
@@ -954,6 +1168,7 This is before the 0 size chunked transf | |||||
954 | Exception: connection closed after sending N bytes |
|
1168 | Exception: connection closed after sending N bytes | |
955 |
|
1169 | |||
956 |
|
|
1170 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
1171 | #endif | |||
957 |
|
1172 | |||
958 | $ rm -f error.log |
|
1173 | $ rm -f error.log | |
959 | $ rm -rf clone |
|
1174 | $ rm -rf clone | |
@@ -975,6 +1190,36 Server sends a size 0 chunked-transfer s | |||||
975 |
|
1190 | |||
976 | $ killdaemons.py $DAEMON_PIDS |
|
1191 | $ killdaemons.py $DAEMON_PIDS | |
977 |
|
1192 | |||
|
1193 | #if py3 | |||
|
1194 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26 | |||
|
1195 | sendall(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1196 | sendall(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |||
|
1197 | sendall(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) | |||
|
1198 | sendall(9 from 9) -> (789) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc) | |||
|
1199 | sendall(473 from 473) -> (316) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc) | |||
|
1200 | sendall(9 from 9) -> (307) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1201 | sendall(9 from 9) -> (298) 4\\r\\n\x00\x00\x00 \\r\\n (esc) | |||
|
1202 | sendall(38 from 38) -> (260) 20\\r\\n\x08LISTKEYS\x00\x00\x00\x01\x01\x00 \x06namespacephases\\r\\n (esc) | |||
|
1203 | sendall(9 from 9) -> (251) 4\\r\\n\x00\x00\x00:\\r\\n (esc) | |||
|
1204 | sendall(64 from 64) -> (187) 3a\r\n96ee1d7354c4ad7372047672c36a1f561e3a6a4c 1\npublishing True\r\n | |||
|
1205 | sendall(9 from 9) -> (178) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1206 | sendall(9 from 9) -> (169) 4\\r\\n\x00\x00\x00#\\r\\n (esc) | |||
|
1207 | sendall(41 from 41) -> (128) 23\\r\\n\x08LISTKEYS\x00\x00\x00\x02\x01\x00 namespacebookmarks\\r\\n (esc) | |||
|
1208 | sendall(9 from 9) -> (119) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1209 | sendall(9 from 9) -> (110) 4\\r\\n\x00\x00\x00\x1d\\r\\n (esc) | |||
|
1210 | sendall(35 from 35) -> (75) 1d\\r\\n\x16cache:rev-branch-cache\x00\x00\x00\x03\x00\x00\\r\\n (esc) | |||
|
1211 | sendall(9 from 9) -> (66) 4\\r\\n\x00\x00\x00'\\r\\n (esc) | |||
|
1212 | sendall(45 from 45) -> (21) 27\\r\\n\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00default\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\\r\\n (esc) | |||
|
1213 | sendall(9 from 9) -> (12) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1214 | sendall(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |||
|
1215 | sendall(3 from 5) -> (0) 0\r\n | |||
|
1216 | write limit reached; closing socket | |||
|
1217 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |||
|
1218 | Traceback (most recent call last): | |||
|
1219 | Exception: connection closed after sending N bytes | |||
|
1220 | ||||
|
1221 | ||||
|
1222 | #else | |||
978 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27 |
|
1223 | $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27 | |
979 | write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
|
1224 | write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) | |
980 | write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
|
1225 | write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc) | |
@@ -1003,6 +1248,7 Server sends a size 0 chunked-transfer s | |||||
1003 | Exception: connection closed after sending N bytes |
|
1248 | Exception: connection closed after sending N bytes | |
1004 |
|
1249 | |||
1005 | write(27) -> 15\r\nInternal Server Error\r\n |
|
1250 | write(27) -> 15\r\nInternal Server Error\r\n | |
|
1251 | #endif | |||
1006 |
|
1252 | |||
1007 | $ rm -f error.log |
|
1253 | $ rm -f error.log | |
1008 | $ rm -rf clone |
|
1254 | $ rm -rf clone |
General Comments 0
You need to be logged in to leave comments.
Login now