tests/test-http-bad-server.t
changeset 40936 e06719b7544d
parent 40886 8aa7879adacf
parent 40926 21f5810df848
child 40973 97484e1d1834
equal deleted inserted replaced
40935:4591c9791a82 40936:e06719b7544d
    70 
    70 
    71   $ hg serve --config badserver.closeafterrecvbytes=1 -p $HGPORT -d --pid-file=hg.pid -E error.log
    71   $ hg serve --config badserver.closeafterrecvbytes=1 -p $HGPORT -d --pid-file=hg.pid -E error.log
    72   $ cat hg.pid > $DAEMON_PIDS
    72   $ cat hg.pid > $DAEMON_PIDS
    73 
    73 
    74   $ hg clone http://localhost:$HGPORT/ clone
    74   $ hg clone http://localhost:$HGPORT/ clone
    75   abort: error: bad HTTP status line: ''
    75   abort: error: bad HTTP status line: * (glob)
    76   [255]
    76   [255]
    77 
    77 
    78   $ killdaemons.py $DAEMON_PIDS
    78   $ killdaemons.py $DAEMON_PIDS
    79 
    79 
    80   $ cat error.log
    80   $ cat error.log
    86 Same failure, but server reads full HTTP request line
    86 Same failure, but server reads full HTTP request line
    87 
    87 
    88   $ hg serve --config badserver.closeafterrecvbytes=40 -p $HGPORT -d --pid-file=hg.pid -E error.log
    88   $ hg serve --config badserver.closeafterrecvbytes=40 -p $HGPORT -d --pid-file=hg.pid -E error.log
    89   $ cat hg.pid > $DAEMON_PIDS
    89   $ cat hg.pid > $DAEMON_PIDS
    90   $ hg clone http://localhost:$HGPORT/ clone
    90   $ hg clone http://localhost:$HGPORT/ clone
    91   abort: error: bad HTTP status line: ''
    91   abort: error: bad HTTP status line: * (glob)
    92   [255]
    92   [255]
    93 
    93 
    94   $ killdaemons.py $DAEMON_PIDS
    94   $ killdaemons.py $DAEMON_PIDS
    95 
    95 
    96   $ cat error.log
    96   $ cat error.log
   103 Failure on subsequent HTTP request on the same socket (cmd?batch)
   103 Failure on subsequent HTTP request on the same socket (cmd?batch)
   104 
   104 
   105   $ hg serve --config badserver.closeafterrecvbytes=210,223 -p $HGPORT -d --pid-file=hg.pid -E error.log
   105   $ hg serve --config badserver.closeafterrecvbytes=210,223 -p $HGPORT -d --pid-file=hg.pid -E error.log
   106   $ cat hg.pid > $DAEMON_PIDS
   106   $ cat hg.pid > $DAEMON_PIDS
   107   $ hg clone http://localhost:$HGPORT/ clone
   107   $ hg clone http://localhost:$HGPORT/ clone
   108   abort: error: bad HTTP status line: ''
   108   abort: error: bad HTTP status line: * (glob)
   109   [255]
   109   [255]
   110 
   110 
   111   $ killdaemons.py $DAEMON_PIDS
   111   $ killdaemons.py $DAEMON_PIDS
   112 
   112 
   113   $ cat error.log
   113   $ cat error.log
   142 
   142 
   143   $ hg serve --config badserver.closeafterrecvbytes=308,317,304 -p $HGPORT -d --pid-file=hg.pid -E error.log
   143   $ hg serve --config badserver.closeafterrecvbytes=308,317,304 -p $HGPORT -d --pid-file=hg.pid -E error.log
   144   $ cat hg.pid > $DAEMON_PIDS
   144   $ cat hg.pid > $DAEMON_PIDS
   145   $ hg clone http://localhost:$HGPORT/ clone
   145   $ hg clone http://localhost:$HGPORT/ clone
   146   requesting all changes
   146   requesting all changes
   147   abort: error: bad HTTP status line: ''
   147   abort: error: bad HTTP status line: * (glob)
   148   [255]
   148   [255]
   149 
   149 
   150   $ killdaemons.py $DAEMON_PIDS
   150   $ killdaemons.py $DAEMON_PIDS
   151 
   151 
   152   $ cat error.log
   152   $ cat error.log
   201 
   201 
   202   $ hg serve --config experimental.httppostargs=true --config badserver.closeafterrecvbytes=329,344 -p $HGPORT -d --pid-file=hg.pid -E error.log
   202   $ hg serve --config experimental.httppostargs=true --config badserver.closeafterrecvbytes=329,344 -p $HGPORT -d --pid-file=hg.pid -E error.log
   203   $ cat hg.pid > $DAEMON_PIDS
   203   $ cat hg.pid > $DAEMON_PIDS
   204 
   204 
   205   $ hg clone http://localhost:$HGPORT/ clone
   205   $ hg clone http://localhost:$HGPORT/ clone
   206   abort: error: bad HTTP status line: ''
   206   abort: error: bad HTTP status line: * (glob)
   207   [255]
   207   [255]
   208 
   208 
   209   $ killdaemons.py $DAEMON_PIDS
   209   $ killdaemons.py $DAEMON_PIDS
   210 
   210 
   211   $ cat error.log
   211   $ cat error.log