962 $ rm -f error.log |
962 $ rm -f error.log |
963 |
963 |
964 Server stops sending after bundle2 part header |
964 Server stops sending after bundle2 part header |
965 ---------------------------------------------- |
965 ---------------------------------------------- |
966 |
966 |
967 $ hg serve --config badserver.close-after-send-bytes=1048 -p $HGPORT -d --pid-file=hg.pid -E error.log |
967 $ hg serve \ |
|
968 > --config badserver.close-after-send-patterns="version02nbchanges1\\r\\n" \ |
|
969 > -p $HGPORT -d --pid-file=hg.pid -E error.log |
968 $ cat hg.pid > $DAEMON_PIDS |
970 $ cat hg.pid > $DAEMON_PIDS |
969 |
971 |
970 $ hg clone http://localhost:$HGPORT/ clone |
972 $ hg clone http://localhost:$HGPORT/ clone |
971 requesting all changes |
973 requesting all changes |
972 adding changesets |
974 adding changesets |
978 |
980 |
979 $ killdaemons.py $DAEMON_PIDS |
981 $ killdaemons.py $DAEMON_PIDS |
980 |
982 |
981 #if py36 |
983 #if py36 |
982 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
984 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12 |
983 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 |
985 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 |
984 sendall(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc) |
986 sendall(6) -> 1\\r\\n\x04\\r\\n (esc) |
985 sendall(9 from 9) -> (74) 4\r\nnone\r\n |
987 sendall(9) -> 4\r\nnone\r\n |
986 sendall(9 from 9) -> (65) 4\r\nHG20\r\n |
988 sendall(9) -> 4\r\nHG20\r\n |
987 sendall(9 from 9) -> (56) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
989 sendall(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
988 sendall(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
990 sendall(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
989 sendall(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) |
991 sendall(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) |
990 write limit reached; closing socket |
992 write limit reached; closing socket |
991 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
993 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
992 Traceback (most recent call last): |
994 Traceback (most recent call last): |
993 Exception: connection closed after sending N bytes |
995 Exception: connection closed after sending N bytes |
994 |
996 |
995 |
997 |
996 #else |
998 #else |
997 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 |
999 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14 |
998 readline(~) -> (2) \r\n (py3 !) |
1000 readline(~) -> (2) \r\n (py3 !) |
999 write(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 (py3 !) |
1001 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 !) |
1000 write(41 from 41) -> (119) Content-Type: application/mercurial-0.2\r\n |
1002 write(41) -> Content-Type: application/mercurial-0.2\r\n |
1001 write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n |
1003 write(28) -> Transfer-Encoding: chunked\r\n (no-py3 !) |
1002 write(2 from 2) -> (89) \r\n |
1004 write(2) -> \r\n (no-py3 !) |
1003 write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc) |
1005 write(6) -> 1\\r\\n\x04\\r\\n (esc) |
1004 write(9 from 9) -> (74) 4\r\nnone\r\n |
1006 write(9) -> 4\r\nnone\r\n |
1005 write(9 from 9) -> (65) 4\r\nHG20\r\n |
1007 write(9) -> 4\r\nHG20\r\n |
1006 write(9 from 9) -> (56) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
1008 write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc) |
1007 write(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
1009 write(9) -> 4\\r\\n\x00\x00\x00)\\r\\n (esc) |
1008 write(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) |
1010 write(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc) |
1009 write limit reached; closing socket |
1011 write limit reached; closing socket |
1010 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
1012 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
1011 Traceback (most recent call last): |
1013 Traceback (most recent call last): |
1012 Exception: connection closed after sending N bytes |
1014 Exception: connection closed after sending N bytes |