811 $ rm -f error.log |
811 $ rm -f error.log |
812 |
812 |
813 Server sends incomplete bundle2 stream params length |
813 Server sends incomplete bundle2 stream params length |
814 ---------------------------------------------------- |
814 ---------------------------------------------------- |
815 |
815 |
816 $ hg serve --config badserver.close-after-send-bytes=989 -p $HGPORT -d --pid-file=hg.pid -E error.log |
816 $ hg serve \ |
|
817 > --config badserver.close-after-send-patterns='4\r\n\0\0\0' \ |
|
818 > -p $HGPORT -d --pid-file=hg.pid -E error.log |
817 $ cat hg.pid > $DAEMON_PIDS |
819 $ cat hg.pid > $DAEMON_PIDS |
818 |
820 |
819 $ hg clone http://localhost:$HGPORT/ clone |
821 $ hg clone http://localhost:$HGPORT/ clone |
820 requesting all changes |
822 requesting all changes |
821 abort: HTTP request error (incomplete response) (py3 !) |
823 abort: HTTP request error (incomplete response) (py3 !) |
825 |
827 |
826 $ killdaemons.py $DAEMON_PIDS |
828 $ killdaemons.py $DAEMON_PIDS |
827 |
829 |
828 #if py36 |
830 #if py36 |
829 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 |
831 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -10 |
830 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 |
832 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 |
831 sendall(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc) |
833 sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
832 sendall(9 from 9) -> (15) 4\r\nnone\r\n |
834 sendall(9) -> 4\r\nnone\r\n |
833 sendall(9 from 9) -> (6) 4\r\nHG20\r\n |
835 sendall(9) -> 4\r\nHG20\r\n |
834 sendall(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) |
836 sendall(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) |
835 write limit reached; closing socket |
837 write limit reached; closing socket |
836 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
838 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
837 Traceback (most recent call last): |
839 Traceback (most recent call last): |
838 Exception: connection closed after sending N bytes |
840 Exception: connection closed after sending N bytes |
839 |
841 |
840 |
842 |
841 #else |
843 #else |
842 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
844 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
843 readline(~) -> (2) \r\n (py3 !) |
845 readline(~) -> (2) \r\n (py3 !) |
844 write(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 (py3 !) |
846 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 !) |
845 write(41 from 41) -> (60) Content-Type: application/mercurial-0.2\r\n |
847 write(41) -> Content-Type: application/mercurial-0.2\r\n |
846 write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n |
848 write(28) -> Transfer-Encoding: chunked\r\n (no-py3 !) |
847 write(2 from 2) -> (30) \r\n |
849 write(2) -> \r\n (no-py3 !) |
848 write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc) |
850 write(6) -> 1\\r\\n\x04\\r\\n (esc) |
849 write(9 from 9) -> (15) 4\r\nnone\r\n |
851 write(9) -> 4\r\nnone\r\n |
850 write(9 from 9) -> (6) 4\r\nHG20\r\n |
852 write(9) -> 4\r\nHG20\r\n |
851 write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) |
853 write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc) |
852 write limit reached; closing socket |
854 write limit reached; closing socket |
853 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
855 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
854 Traceback (most recent call last): |
856 Traceback (most recent call last): |
855 Exception: connection closed after sending N bytes |
857 Exception: connection closed after sending N bytes |