mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: Make ap_wps_er_http_proto less likely to fail
The test step for concurrent HTTP connections seems to be failing quite frequently when running in a virtual machine with run-tests.py (but not that much with kvm and vm-run.sh). The failures are due to only 8 or 9 sockets getting a response from the HTTP server. This is sufficient for testing purposes, to drop the pass criterium from 10 to 8 concurrent connections. This avoids unnecessary test failures and also allows the rest of the test case to be performed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
02538b39b4
commit
6f9b4de228
@ -4450,11 +4450,13 @@ RGV2aWNlIEEQSQAGADcqAAEg
|
||||
res = socks[i].recv(100)
|
||||
if "HTTP/1" in res:
|
||||
count += 1
|
||||
else:
|
||||
logger.info("recv[%d]: len=%d" % (i, len(res)))
|
||||
except:
|
||||
pass
|
||||
socks[i].close()
|
||||
logger.info("%d concurrent HTTP GET operations returned response" % count)
|
||||
if count < 10:
|
||||
if count < 8:
|
||||
raise Exception("Too few concurrent HTTP connections accepted")
|
||||
|
||||
logger.info("OOM in HTTP server")
|
||||
|
Loading…
Reference in New Issue
Block a user