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

Enable chef setting for tcp_listen linger option #321

Merged
merged 1 commit into from
Nov 24, 2015

Conversation

mgosalia
Copy link

No description provided.

@mgosalia
Copy link
Author

@jjasghar could you please review this ?
Reference - https://www.rabbitmq.com/networking.html
grep for "linger".

@jjasghar
Copy link
Contributor

I'll take a look at this, and do some research on this.

@michaelklishin any thoughts on this option? This is the first i've heard of it.

@mgosalia
Copy link
Author

@michaelklishin fyi...I had sent out an email to openstack-operators mailing list as well.
Here is the email - http://lists.openstack.org/pipermail/openstack-operators/2015-November/008878.html

@mgosalia
Copy link
Author

Thanks @jjasghar

@michaelklishin
Copy link
Member

Socket lingering is primarily useful to clients but I have no objections to this. Keep in mind that as of 3.6.0 we will be using a TCP acceptor library called Ranch, which has sensible defaults for most, and is fairly strict about rejecting options it doesn't support (in general, the options are nearly identical to gen_tcp, though).

@mgosalia
Copy link
Author

@michaelklishin do we know for sure that linger {true, 0} is always the default setting in rabbitmq config ?
This documentation [1] does say so.

[1] - https://www.rabbitmq.com/networking.html

@michaelklishin
Copy link
Member

@mgosalia see for yourself:

@mgosalia
Copy link
Author

Thanks @michaelklishin.
@jjasghar is it good to go ? This change will help us at Yahoo to configure the value.

@jjasghar
Copy link
Contributor

I'm going to run this through our testing today. Any chance you can create an integration/unit test for this? I really don't like adding things to this cookbook without test coverage.

@mgosalia
Copy link
Author

@jjasghar sure...will add unit tests. I tried to look for existing tests related to rabbitmq config and did not find any. So, had skipped it. Let me dig more.

@jjasghar
Copy link
Contributor

Sounds good, just Unit tests are probably fine. When you get them added I'll go through my release process and get this pushed out.

@mgosalia
Copy link
Author

@jjasghar have updated the change with unit tests. Could you please review it again ? Thanks.

@jjasghar
Copy link
Contributor

Awesome, thanks. I'll run some final tests and push out a new version ASAP.

jjasghar pushed a commit that referenced this pull request Nov 24, 2015
Enable chef setting for tcp_listen linger option
@jjasghar jjasghar merged commit f573062 into rabbitmq:master Nov 24, 2015
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.

3 participants