-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set timeout for do_handshake()? #986
Comments
I found 300 seconds as well in openssl command.
|
Hey @vvoody, I would also like to see the
|
Unfortunately, it is an old issue, see #168 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I met a weird connection problem.
TCP connection is ok to establish with my target IP. However, it hangs for a long time at
do_handshake()
.Here is my code.
conn.settimeout(3)
andconn.setblocking(True)
is used for TCP connection timeout.Sometimes it just resets when calls
do_handshake()
. This is good, which I can ignore it and continue to proceed other targets.It hangs! This is the worst situation. I have to interrupt it.
I did a test.
do_handshake()
raises exception after 300 seconds. It surprises me that it's not due to timeout.300 seconds is not acceptable. There are thousands of targets to scan. I cannot wait for N*300 seconds, although it's a small portion.
How can it make
do_handshake()
succeed or fail within a small amount of time?Thanks.
The text was updated successfully, but these errors were encountered: