910 $ rm -f error.log |
910 $ rm -f error.log |
911 |
911 |
912 Server stops sending after bundle2 part header length |
912 Server stops sending after bundle2 part header length |
913 ----------------------------------------------------- |
913 ----------------------------------------------------- |
914 |
914 |
915 $ hg serve --config badserver.close-after-send-bytes=1001 -p $HGPORT -d --pid-file=hg.pid -E error.log |
915 $ hg serve \ |
|
916 > --config badserver.close-after-send-patterns='4\r\n\0\0\0\)\r\n' \ |
|
917 > -p $HGPORT -d --pid-file=hg.pid -E error.log |
916 $ cat hg.pid > $DAEMON_PIDS |
918 $ cat hg.pid > $DAEMON_PIDS |
917 |
919 |
918 $ hg clone http://localhost:$HGPORT/ clone |
920 $ hg clone http://localhost:$HGPORT/ clone |
919 requesting all changes |
921 requesting all changes |
920 abort: HTTP request error (incomplete response) |
922 abort: HTTP request error (incomplete response) |
923 |
925 |
924 $ killdaemons.py $DAEMON_PIDS |
926 $ killdaemons.py $DAEMON_PIDS |
925 |
927 |
926 #if py36 |
928 #if py36 |
927 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
929 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11 |
928 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 |
930 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 |
929 sendall(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc) |
931 sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
930 sendall(9 from 9) -> (27) 4\r\nnone\r\n |
932 sendall(9) -> 4\r\nnone\r\n |
931 sendall(9 from 9) -> (18) 4\r\nHG20\r\n |
933 sendall(9) -> 4\r\nHG20\r\n |
932 sendall(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
934 sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
933 sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
935 sendall(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
934 write limit reached; closing socket |
936 write limit reached; closing socket |
935 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
937 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
936 Traceback (most recent call last): |
938 Traceback (most recent call last): |
937 Exception: connection closed after sending N bytes |
939 Exception: connection closed after sending N bytes |
939 |
941 |
940 #else |
942 #else |
941 |
943 |
942 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13 |
944 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13 |
943 readline(~) -> (2) \r\n (py3 !) |
945 readline(~) -> (2) \r\n (py3 !) |
944 write(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 (py3 !) |
946 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 !) |
945 write(41 from 41) -> (72) Content-Type: application/mercurial-0.2\r\n |
947 write(41) -> Content-Type: application/mercurial-0.2\r\n |
946 write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n |
948 write(28) -> Transfer-Encoding: chunked\r\n (no-py3 !) |
947 write(2 from 2) -> (42) \r\n |
949 write(2) -> \r\n (no-py3 !) |
948 write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc) |
950 write(6) -> 1\\r\\n\x04\\r\\n (esc) |
949 write(9 from 9) -> (27) 4\r\nnone\r\n |
951 write(9) -> 4\r\nnone\r\n |
950 write(9 from 9) -> (18) 4\r\nHG20\r\n |
952 write(9) -> 4\r\nHG20\r\n |
951 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
953 write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
952 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
954 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
953 write limit reached; closing socket |
955 write limit reached; closing socket |
954 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
956 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
955 Traceback (most recent call last): |
957 Traceback (most recent call last): |
956 Exception: connection closed after sending N bytes |
958 Exception: connection closed after sending N bytes |