# # $Id$ # # QS_ClientEventBlockCount 20 30 # QS_SetEnvIfStatus 400 QS_Block # INCLUDE scripts/ports EXEC ./ctl.sh restart -D real_ip >/dev/null CLIENT _LOOP 20 _REQ localhost $QS_PORT_BASE __GET __Host: localhost __Connection: keep-alive __Req: 01 __ _EXPECT . "400 Bad Request" _WAIT _CLOSE _END LOOP _EXPECT ERROR "Connection reset by peer" _REQ localhost $QS_PORT_BASE #__GET #__Host: localhost #__Connection: keep-alive #__Req: 02 #__ _CLOSE _SLEEP 200 _EXPECT EXEC "mod_qos\(060\): access denied, QS_ClientEventBlockCount rule: max=20, current=20" _EXEC tail -2 logs/error_log _EXPECT EXEC "!system.load" _EXPECT EXEC "Connection reset by peer" _EXEC ./qosauto.sh _EXPECT ERROR "Connection reset by peer" _REQ localhost $QS_PORT_BASE __GET /htt/index.txt HTTP/1.0 __ _CLOSE _SLEEP 100 _EXPECT EXEC "\"GET\" 400 " _EXEC tail -1 logs/access_log _SLEEP 33000 _REQ localhost $QS_PORT_BASE __GET __Host: localhost __Connection: keep-alive __Req: 03 __ _EXPECT . "400 Bad Request" _WAIT _CLOSE _REQ localhost $QS_PORT_BASE __GET /index.html HTTP/1.1 __Host: localhost __Connection: keep-alive __Req: 04 __ _EXPECT . "this is the root index.html" _WAIT _CLOSE _REQ localhost $QS_PORT_BASE __GET /htt/index.txt HTTP/1.0 __ _EXPECT . "httest backend" _WAIT _CLOSE END SERVER $QS_PORT_BASE6 _RES _WAIT __HTTP/1.1 200 OK __Content-Type: text/plain __Content-Length: AUTO __login: valid __ __httest backend _CLOSE END BLOCK FINALLY _EXEC ./ctl.sh restart 2>/dev/null 1>/dev/null END