mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-19 10:33:05 -05:00
Commit 2d6a526ac3885605f34df4037fc79ad330565b23 ('tests: Make ap_wps_er_http_proto more robust') tried to work around the timeouts here, but that was not really the best approach since the one second timeout that was used here for connect() ended up being very close to the limit even before the kernel change. The longer connect() time is caused by a sequence where the listen() backlog ignores the connection instead of accept() followed by close() within the wpa_supplicant ER HTTP connection handling. The time to retransmit the SYN changed a bit in the kernel from 1.0 sec to about 1.03 sec. This was enough to push that over the one second timeout. Fix this by using a sufficiently long timeout (10 sec) to allow SYN retransmission to occur to recover from the listen() backlog case. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>