-
Notifications
You must be signed in to change notification settings - Fork 75
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
New configuration option to allow socket to use TCP keep-alive #116
Conversation
Here is how i confirmed it is working: With the following config:
start logstash from a different window:
validate the ESTABLISHED state : netstat -an | grep 55115 wait a couple hours and ensure via wireshark that the tcp keep alive packet is sent |
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.
LGTM
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.
On second thought, I think this enough of a breaking change to warrant a new boolean option of tcp_keepalive
or similar that is false by default.
We can make it true by default in future versions
code has been updated with the option, and now applies to SSL connection too. I still need to finish testing this which takes bit since I need to hold open a connection for a few hours. |
you can test it faster by reducing the keepalive. On osx:
Value is in milliseconds, so 360000 is 10 minutes (default is 7200000, 2 hours) |
@jsvd - can you take another look, I added 2 more commits since last review. I could never get the keep alives to fire from TLS / Ruby side of things. The code (now) is by all accounts is correct, and having burned way to many hours trying to debug, I am calling TLS + keep alive possibly supported ( I think there may be an issue with JRuby). ... anyway there is PR we should finish up to convert the TLS side of the plugin over to Java, which has many more benifits then just keep alives firing properly when TLS is configured: #106 non-TLS (Java/Netty implementation ) tested to work exactly as expected. |
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.
LGTM
thanks @jsvd ! |
No description provided.