Modified redisd to notify for eth0 ip change,issue 80 #115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Event is generated in netlink.go and it is notified to redisd for eth0 ip change.Old connection is closed.
Before change =
siddhant@invader41:~$ netstat -nlp | grep 6379
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 172.17.2.31:6379 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN -
tcp6 0 0 fe80::5218:4cff:fe:6379 :::* LISTEN -
tcp6 0 0 ::1:6379 :::* LISTEN -
After change=
siddhant@invader41:~$ netstat -nlp | grep 6379
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 172.17.2.95:6379 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN -
tcp6 0 0 fe80::5218:4cff:fe:6379 :::* LISTEN -
tcp6 0 0 ::1:6379 :::* LISTEN -
Connect through redis-cli from i29 with changed ip.
siddhant@invader29:~$ redis-cli -h 172.17.2.95
172.17.2.95:6379>