763 $ rm -f error.log |
763 $ rm -f error.log |
764 |
764 |
765 Server sends partial bundle2 header magic |
765 Server sends partial bundle2 header magic |
766 ----------------------------------------- |
766 ----------------------------------------- |
767 |
767 |
768 $ hg serve --config badserver.close-after-send-bytes=980 -p $HGPORT -d --pid-file=hg.pid -E error.log |
768 $ hg serve \ |
|
769 > --config badserver.close-after-send-patterns='4\r\nHG2' \ |
|
770 > -p $HGPORT -d --pid-file=hg.pid -E error.log |
769 $ cat hg.pid > $DAEMON_PIDS |
771 $ cat hg.pid > $DAEMON_PIDS |
770 |
772 |
771 $ hg clone http://localhost:$HGPORT/ clone |
773 $ hg clone http://localhost:$HGPORT/ clone |
772 requesting all changes |
774 requesting all changes |
773 abort: HTTP request error (incomplete response) (py3 !) |
775 abort: HTTP request error (incomplete response) (py3 !) |
777 |
779 |
778 $ killdaemons.py $DAEMON_PIDS |
780 $ killdaemons.py $DAEMON_PIDS |
779 |
781 |
780 #if py36 |
782 #if py36 |
781 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -9 |
783 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -9 |
782 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 |
784 sendall(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n |
783 sendall(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc) |
785 sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
784 sendall(9 from 9) -> (6) 4\r\nnone\r\n |
786 sendall(9) -> 4\r\nnone\r\n |
785 sendall(6 from 9) -> (0) 4\r\nHG2 |
787 sendall(6 from 9) -> (0) 4\r\nHG2 |
786 write limit reached; closing socket |
788 write limit reached; closing socket |
787 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
789 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
788 Traceback (most recent call last): |
790 Traceback (most recent call last): |
789 Exception: connection closed after sending N bytes |
791 Exception: connection closed after sending N bytes |
790 |
792 |
791 |
793 |
792 #else |
794 #else |
793 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
795 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
794 readline(~) -> (2) \r\n (py3 !) |
796 readline(~) -> (2) \r\n (py3 !) |
795 write(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 (py3 !) |
797 write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !) |
796 write(41 from 41) -> (51) Content-Type: application/mercurial-0.2\r\n |
798 write(41) -> Content-Type: application/mercurial-0.2\r\n (no-py3 !) |
797 write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n |
799 write(28) -> Transfer-Encoding: chunked\r\n (no-py3 !) |
798 write(2 from 2) -> (21) \r\n |
800 write(2) -> \r\n (no-py3 !) |
799 write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc) |
801 write(6) -> 1\\r\\n\x04\\r\\n (esc) |
800 write(9 from 9) -> (6) 4\r\nnone\r\n |
802 write(9) -> 4\r\nnone\r\n |
801 write(6 from 9) -> (0) 4\r\nHG2 |
803 write(6 from 9) -> (0) 4\r\nHG2 |
802 write limit reached; closing socket |
804 write limit reached; closing socket |
803 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
805 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
804 Traceback (most recent call last): |
806 Traceback (most recent call last): |
805 Exception: connection closed after sending N bytes |
807 Exception: connection closed after sending N bytes |