summaryrefslogtreecommitdiffstats
path: root/net/test/xfrm_tunnel_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/test/xfrm_tunnel_test.py')
-rwxr-xr-xnet/test/xfrm_tunnel_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/test/xfrm_tunnel_test.py b/net/test/xfrm_tunnel_test.py
index 5f243ccc..20a85847 100755
--- a/net/test/xfrm_tunnel_test.py
+++ b/net/test/xfrm_tunnel_test.py
@@ -109,7 +109,7 @@ def _CreateReceiveSock(version, port=0):
# The second parameter of the tuple is the port number regardless of AF.
local_port = read_sock.getsockname()[1]
# Guard against the eventuality of the receive failing.
- net_test.SetNonBlocking(read_sock.fileno())
+ csocket.SetSocketTimeout(read_sock, 500)
return read_sock, local_port