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

Fix #4515: Segfault when serf_wan port was -1 but reconnect_time_wan was set #4531

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Aug 15, 2018

Fixes #4515

This just slightly refactors the logic to only attempt to set the serf wan reconnect timeout when the rest of the serf wan settings are configured - thus avoiding a segfault.

@mkeeler mkeeler added this to the 1.2.3 milestone Aug 15, 2018
Copy link
Member

@banks banks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but stray Println needs cleaning up!

agent/agent.go Outdated
base.SerfLANConfig.ReconnectTimeout = a.config.ReconnectTimeoutLAN
}

fmt.Println(a.config.SerfBindAddrWAN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugging?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It certainly does. I had that there when I was trying to figure out why my test wasn't disabling WAN serf.

@mkeeler
Copy link
Member Author

mkeeler commented Aug 17, 2018

@banks I assume now that that println is gone you are good with this?

Copy link
Member

@banks banks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mkeeler mkeeler merged commit e81c85c into master Aug 17, 2018
@mkeeler mkeeler deleted the bugfix/4515 branch September 6, 2018 19:05
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