-
-
Notifications
You must be signed in to change notification settings - Fork 506
Prevent FIN_WAIT connections by using stream.destorySoon() #524
Conversation
if (that.connection.stream.destroySoon) { | ||
that.connection.stream.destroySoon(); | ||
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please move the else inline with the }
?
I'm thinking we can have a three way case: What do you think? |
@mcollina Done, however I wasn't able to run the tests completely as I don't have Redis installed. |
@behard what do you think? |
I think you meant @behrad =) |
Oh yes :D. |
So it should reduce |
@behrad When connected clients passively disconnect from the internet, they will eventually be kicked due to Mosca's keepalive timeout mechanism, which calls In its current implementation, calling Does that answer your question? |
great explanation @eladnava 👍 |
@behrad excellent, please let us know if it's OK to merge :) |
Ping @behrad? I'll like to merge this and release next week! |
Sorry guys, so busy these days, it takes me some time to test this, I'l let you even after @mcollina releases this :) |
@mcollina Has this been released yet? I'd love to use it in production. Thanks! 😄 |
Sorry, released now as v2.1.0. |
Excellent, thank you! 👍 |
As per #306.