Skip to content
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

Use socket.destroy() not socket.end() on successful connection #19

Merged
merged 1 commit into from
Apr 10, 2014
Merged

Conversation

thomseddon
Copy link
Contributor

When socket.end() is called, a FIN packet is sent however if the other host does not respond the socket will timeout and so this module will report 'closed'. The port is open but the other host is misbehaving.

This fix just forces the connection to be destroyed immediately and so means that a successful connection will always result in an 'open' status being reported.

When socket.end() is called, a FIN packet is sent however if the
other host does not respond the socket will timeout and so this
module will report 'closed'. The port is open but the other host
is misbehaving.
This fix just forces the connection to be destroyed immediately and
so means that a successful connection will always result in an 'open'
status being reported.
@EndangeredMassa
Copy link
Contributor

Makes sense to me. :shipit:

EndangeredMassa added a commit that referenced this pull request Apr 10, 2014
Use socket.destroy() not socket.end() on successful connection
@EndangeredMassa EndangeredMassa merged commit 5526b8b into baalexander:master Apr 10, 2014
@EndangeredMassa
Copy link
Contributor

published in 0.2.3

@thomseddon
Copy link
Contributor Author

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants