Skip to content

Commit 3ffa438

Browse files
committed
tests: Fix SO_REUSEADDR for TCP tests
Previous allow_reuse_addr was incorrect, it should be allow_reuse_address. Confirmed looking at setsockopt in strace when running tcpflushout test. This is a partial fix for github #386
1 parent 4aecd88 commit 3ffa438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_dropbear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def own_venv_command():
7676
class HandleTcp(socketserver.ThreadingMixIn, socketserver.TCPServer):
7777

7878
# override TCPServer's default, avoids TIME_WAIT
79-
allow_reuse_addr = True
79+
allow_reuse_address = True
8080

8181
""" Listens for a single incoming request, sends a response if given,
8282
and returns the inbound data.

0 commit comments

Comments
 (0)