Skip to content

Commit 8a68083

Browse files
committed
Add missing timeout in HTTP_Client request, in sr1() call
1 parent 38ab7de commit 8a68083

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scapy/layers/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def request(
905905
while True:
906906
# Perform the request.
907907
try:
908-
resp = self.sr1(req)
908+
resp = self.sr1(req, timeout=timeout)
909909
except Exception:
910910
# Socket has died, restart.
911911
self._sockinfo = None

0 commit comments

Comments
 (0)