##// END OF EJS Templates
hgweb: log error before attempting I/O...
Gregory Szorc -
r41603:9b2b8794 default
parent child Browse files
Show More
@@ -0,0 +1,29 b''
1 #!/usr/bin/env python
2
3 # Filters traceback lines from stdin.
4
5 from __future__ import absolute_import, print_function
6
7 import sys
8
9 state = 'none'
10
11 for line in sys.stdin:
12 if state == 'none':
13 if line.startswith('Traceback '):
14 state = 'tb'
15
16 elif state == 'tb':
17 if line.startswith(' File '):
18 state = 'file'
19 continue
20
21 elif not line.startswith(' '):
22 state = 'none'
23
24 elif state == 'file':
25 # Ignore lines after " File "
26 state = 'tb'
27 continue
28
29 print(line, end='')
@@ -101,9 +101,8 b' class _httprequesthandler(httpservermod.'
101 101 try:
102 102 self.do_write()
103 103 except Exception:
104 self._start_response(r"500 Internal Server Error", [])
105 self._write(b"Internal Server Error")
106 self._done()
104 # I/O below could raise another exception. So log the original
105 # exception first to ensure it is recorded.
107 106 tb = r"".join(traceback.format_exception(*sys.exc_info()))
108 107 # We need a native-string newline to poke in the log
109 108 # message, because we won't get a newline when using an
@@ -112,6 +111,10 b' class _httprequesthandler(httpservermod.'
112 111 self.log_error(r"Exception happened during processing "
113 112 r"request '%s':%s%s", self.path, newline, tb)
114 113
114 self._start_response(r"500 Internal Server Error", [])
115 self._write(b"Internal Server Error")
116 self._done()
117
115 118 def do_PUT(self):
116 119 self.do_POST()
117 120
@@ -910,7 +910,20 b' Test signal-safe-lock in web and non-web'
910 910
911 911 errors
912 912
913 $ cat errors.log
913 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py
914 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=spam': (glob)
915 Traceback (most recent call last):
916 error: [Errno 104] $ECONNRESET$
917
918 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/spam': (glob)
919 Traceback (most recent call last):
920 error: [Errno 104] $ECONNRESET$
921
922 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/spam/tip/foo': (glob)
923 Traceback (most recent call last):
924 error: [Errno 104] $ECONNRESET$
925
926 $ rm -f errors.log
914 927
915 928 Uncaught exceptions result in a logged error and canned HTTP response
916 929
@@ -925,8 +938,11 b' Uncaught exceptions result in a logged e'
925 938 [1]
926 939
927 940 $ killdaemons.py
928 $ head -1 errors.log
941 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py
929 942 .* Exception happened during processing request '/raiseerror': (re)
943 Traceback (most recent call last):
944 AttributeError: I am an uncaught error!
945
930 946
931 947 Uncaught exception after partial content sent
932 948
@@ -207,7 +207,7 b' Now do a variation using POST to send ar'
207 207
208 208 $ killdaemons.py $DAEMON_PIDS
209 209
210 $ cat error.log
210 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
211 211 readline(329 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
212 212 readline(296 from -1) -> (27) Accept-Encoding: identity\r\n
213 213 readline(269 from -1) -> (35) accept: application/mercurial-0.1\r\n
@@ -241,6 +241,10 b' Now do a variation using POST to send ar'
241 241 readline(* from -1) -> (2) \r\n (glob)
242 242 read(* from 28) -> (*) cmds=* (glob)
243 243 read limit reached, closing socket
244 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
245 Traceback (most recent call last):
246 Exception: connection closed after receiving N bytes
247
244 248 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
245 249
246 250 $ rm -f error.log
@@ -258,7 +262,7 b' Server sends a single character from the'
258 262
259 263 $ killdaemons.py $DAEMON_PIDS
260 264
261 $ cat error.log
265 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
262 266 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
263 267 readline(-1) -> (27) Accept-Encoding: identity\r\n
264 268 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -267,6 +271,10 b' Server sends a single character from the'
267 271 readline(-1) -> (2) \r\n
268 272 write(1 from 36) -> (0) H
269 273 write limit reached; closing socket
274 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
275 Traceback (most recent call last):
276 Exception: connection closed after sending N bytes
277
270 278 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
271 279
272 280 $ rm -f error.log
@@ -283,7 +291,7 b' Server sends an incomplete capabilities '
283 291
284 292 $ killdaemons.py $DAEMON_PIDS
285 293
286 $ cat error.log
294 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
287 295 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
288 296 readline(-1) -> (27) Accept-Encoding: identity\r\n
289 297 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -298,6 +306,10 b' Server sends an incomplete capabilities '
298 306 write(2 from 2) -> (20) \r\n
299 307 write(20 from 450) -> (0) batch branchmap bund
300 308 write limit reached; closing socket
309 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
310 Traceback (most recent call last):
311 Exception: connection closed after sending N bytes
312
301 313
302 314 $ rm -f error.log
303 315
@@ -318,7 +330,7 b' TODO this output is horrible'
318 330
319 331 $ killdaemons.py $DAEMON_PIDS
320 332
321 $ cat error.log
333 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
322 334 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
323 335 readline(-1) -> (27) Accept-Encoding: identity\r\n
324 336 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -346,6 +358,10 b' TODO this output is horrible'
346 358 write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n
347 359 write(22 from 41) -> (0) Content-Type: applicat
348 360 write limit reached; closing socket
361 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
362 Traceback (most recent call last):
363 Exception: connection closed after sending N bytes
364
349 365 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
350 366
351 367 $ rm -f error.log
@@ -366,7 +382,7 b' TODO client spews a stack due to uncaugh'
366 382
367 383 $ killdaemons.py $DAEMON_PIDS
368 384
369 $ cat error.log
385 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
370 386 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
371 387 readline(-1) -> (27) Accept-Encoding: identity\r\n
372 388 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -397,6 +413,10 b' TODO client spews a stack due to uncaugh'
397 413 write(2 from 2) -> (24) \r\n
398 414 write(24 from 42) -> (0) 96ee1d7354c4ad7372047672
399 415 write limit reached; closing socket
416 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
417 Traceback (most recent call last):
418 Exception: connection closed after sending N bytes
419
400 420
401 421 $ rm -f error.log
402 422
@@ -418,7 +438,7 b' TODO this output is terrible'
418 438
419 439 $ killdaemons.py $DAEMON_PIDS
420 440
421 $ cat error.log
441 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
422 442 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
423 443 readline(-1) -> (27) Accept-Encoding: identity\r\n
424 444 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -462,6 +482,10 b' TODO this output is terrible'
462 482 write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n
463 483 write(33 from 41) -> (0) Content-Type: application/mercuri
464 484 write limit reached; closing socket
485 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
486 Traceback (most recent call last):
487 Exception: connection closed after sending N bytes
488
465 489 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
466 490
467 491 $ rm -f error.log
@@ -478,10 +502,10 b' Server stops before it sends transfer en'
478 502
479 503 $ killdaemons.py $DAEMON_PIDS
480 504
481 $ tail -4 error.log
482 write(41 from 41) -> (25) Content-Type: application/mercurial-0.2\r\n
483 write(25 from 28) -> (0) Transfer-Encoding: chunke
484 write limit reached; closing socket
505 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4
506 Traceback (most recent call last):
507 Exception: connection closed after sending N bytes
508
485 509 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
486 510
487 511 $ rm -f error.log
@@ -499,7 +523,7 b' Server sends empty HTTP body for getbund'
499 523
500 524 $ killdaemons.py $DAEMON_PIDS
501 525
502 $ cat error.log
526 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
503 527 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
504 528 readline(-1) -> (27) Accept-Encoding: identity\r\n
505 529 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -545,6 +569,10 b' Server sends empty HTTP body for getbund'
545 569 write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n
546 570 write(2 from 2) -> (0) \r\n
547 571 write limit reached; closing socket
572 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
573 Traceback (most recent call last):
574 Exception: connection closed after sending N bytes
575
548 576 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
549 577
550 578 $ rm -f error.log
@@ -562,7 +590,7 b' Server sends partial compression string'
562 590
563 591 $ killdaemons.py $DAEMON_PIDS
564 592
565 $ cat error.log
593 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
566 594 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
567 595 readline(-1) -> (27) Accept-Encoding: identity\r\n
568 596 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -611,6 +639,10 b' Server sends partial compression string'
611 639 write(9 from 9) -> (9) 4\r\nnone\r\n
612 640 write(9 from 9) -> (0) 4\r\nHG20\r\n
613 641 write limit reached; closing socket
642 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
643 Traceback (most recent call last):
644 Exception: connection closed after sending N bytes
645
614 646 write(27) -> 15\r\nInternal Server Error\r\n
615 647
616 648 $ rm -f error.log
@@ -628,13 +660,17 b' Server sends partial bundle2 header magi'
628 660
629 661 $ killdaemons.py $DAEMON_PIDS
630 662
631 $ tail -7 error.log
663 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
632 664 write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n
633 665 write(2 from 2) -> (21) \r\n
634 666 write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
635 667 write(9 from 9) -> (6) 4\r\nnone\r\n
636 668 write(6 from 9) -> (0) 4\r\nHG2
637 669 write limit reached; closing socket
670 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
671 Traceback (most recent call last):
672 Exception: connection closed after sending N bytes
673
638 674 write(27) -> 15\r\nInternal Server Error\r\n
639 675
640 676 $ rm -f error.log
@@ -652,7 +688,7 b' Server sends incomplete bundle2 stream p'
652 688
653 689 $ killdaemons.py $DAEMON_PIDS
654 690
655 $ tail -8 error.log
691 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
656 692 write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n
657 693 write(2 from 2) -> (30) \r\n
658 694 write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
@@ -660,6 +696,10 b' Server sends incomplete bundle2 stream p'
660 696 write(9 from 9) -> (6) 4\r\nHG20\r\n
661 697 write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
662 698 write limit reached; closing socket
699 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
700 Traceback (most recent call last):
701 Exception: connection closed after sending N bytes
702
663 703 write(27) -> 15\r\nInternal Server Error\r\n
664 704
665 705 $ rm -f error.log
@@ -677,7 +717,7 b' Servers stops after bundle2 stream param'
677 717
678 718 $ killdaemons.py $DAEMON_PIDS
679 719
680 $ tail -8 error.log
720 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
681 721 write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n
682 722 write(2 from 2) -> (33) \r\n
683 723 write(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
@@ -685,6 +725,10 b' Servers stops after bundle2 stream param'
685 725 write(9 from 9) -> (9) 4\r\nHG20\r\n
686 726 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
687 727 write limit reached; closing socket
728 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
729 Traceback (most recent call last):
730 Exception: connection closed after sending N bytes
731
688 732 write(27) -> 15\r\nInternal Server Error\r\n
689 733
690 734 $ rm -f error.log
@@ -702,7 +746,7 b' Server stops sending after bundle2 part '
702 746
703 747 $ killdaemons.py $DAEMON_PIDS
704 748
705 $ tail -9 error.log
749 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
706 750 write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n
707 751 write(2 from 2) -> (42) \r\n
708 752 write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
@@ -711,6 +755,10 b' Server stops sending after bundle2 part '
711 755 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
712 756 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
713 757 write limit reached; closing socket
758 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
759 Traceback (most recent call last):
760 Exception: connection closed after sending N bytes
761
714 762 write(27) -> 15\r\nInternal Server Error\r\n
715 763
716 764 $ rm -f error.log
@@ -731,7 +779,7 b' Server stops sending after bundle2 part '
731 779
732 780 $ killdaemons.py $DAEMON_PIDS
733 781
734 $ tail -10 error.log
782 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
735 783 write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n
736 784 write(2 from 2) -> (89) \r\n
737 785 write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
@@ -741,6 +789,10 b' Server stops sending after bundle2 part '
741 789 write(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
742 790 write(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
743 791 write limit reached; closing socket
792 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
793 Traceback (most recent call last):
794 Exception: connection closed after sending N bytes
795
744 796 write(27) -> 15\r\nInternal Server Error\r\n
745 797
746 798 $ rm -f error.log
@@ -761,7 +813,7 b' Server stops after bundle2 part payload '
761 813
762 814 $ killdaemons.py $DAEMON_PIDS
763 815
764 $ tail -11 error.log
816 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
765 817 write(2 from 2) -> (110) \r\n
766 818 write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
767 819 write(9 from 9) -> (95) 4\r\nnone\r\n
@@ -772,6 +824,10 b' Server stops after bundle2 part payload '
772 824 write(9 from 9) -> (12) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
773 825 write(12 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1d (esc)
774 826 write limit reached; closing socket
827 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
828 Traceback (most recent call last):
829 Exception: connection closed after sending N bytes
830
775 831 write(27) -> 15\r\nInternal Server Error\r\n
776 832
777 833 $ rm -f error.log
@@ -792,7 +848,7 b' Server stops sending in middle of bundle'
792 848
793 849 $ killdaemons.py $DAEMON_PIDS
794 850
795 $ tail -12 error.log
851 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
796 852 write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n
797 853 write(2 from 2) -> (571) \r\n
798 854 write(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
@@ -804,6 +860,10 b' Server stops sending in middle of bundle'
804 860 write(9 from 9) -> (473) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
805 861 write(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)
806 862 write limit reached; closing socket
863 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
864 Traceback (most recent call last):
865 Exception: connection closed after sending N bytes
866
807 867 write(27) -> 15\r\nInternal Server Error\r\n
808 868
809 869 $ rm -f error.log
@@ -827,7 +887,7 b' Server stops sending after 0 length payl'
827 887
828 888 $ killdaemons.py $DAEMON_PIDS
829 889
830 $ tail -13 error.log
890 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17
831 891 write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
832 892 write(9 from 9) -> (587) 4\r\nnone\r\n
833 893 write(9 from 9) -> (578) 4\r\nHG20\r\n
@@ -840,6 +900,10 b' Server stops sending after 0 length payl'
840 900 write(9 from 9) -> (13) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
841 901 write(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc)
842 902 write limit reached; closing socket
903 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
904 Traceback (most recent call last):
905 Exception: connection closed after sending N bytes
906
843 907 write(27) -> 15\r\nInternal Server Error\r\n
844 908
845 909 $ rm -f error.log
@@ -863,7 +927,7 b' This is before the 0 size chunked transf'
863 927
864 928 $ killdaemons.py $DAEMON_PIDS
865 929
866 $ tail -22 error.log
930 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26
867 931 write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
868 932 write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
869 933 write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
@@ -885,6 +949,10 b' This is before the 0 size chunked transf'
885 949 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
886 950 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
887 951 write limit reached; closing socket
952 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
953 Traceback (most recent call last):
954 Exception: connection closed after sending N bytes
955
888 956 write(27) -> 15\r\nInternal Server Error\r\n
889 957
890 958 $ rm -f error.log
@@ -907,7 +975,7 b' Server sends a size 0 chunked-transfer s'
907 975
908 976 $ killdaemons.py $DAEMON_PIDS
909 977
910 $ tail -23 error.log
978 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27
911 979 write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
912 980 write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
913 981 write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
@@ -930,6 +998,10 b' Server sends a size 0 chunked-transfer s'
930 998 write(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
931 999 write(3 from 5) -> (0) 0\r\n
932 1000 write limit reached; closing socket
1001 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
1002 Traceback (most recent call last):
1003 Exception: connection closed after sending N bytes
1004
933 1005 write(27) -> 15\r\nInternal Server Error\r\n
934 1006
935 1007 $ rm -f error.log
General Comments 0
You need to be logged in to leave comments. Login now