-
Notifications
You must be signed in to change notification settings - Fork 151
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 updating pattern and route address #17
Conversation
i believe we should update |
alternatively we could also do it your way, and have and also, if there's a legitimate error (like a typo in a dns name), it could go unnoticed this way. i think i prefer the stricter mode i mentioned above. |
At the moment it works in this way that it updates and try to connect, if there is problem with connection it is reported to the user with error, but it gives possibility to edit destination is down. |
aha indeed, so when there's a problem setting up the connection, we will always tell the user about this. I believe we should only update route.Addr if we are able to update the route's connection with a valid connection to the new address. |
I did extra handling for the case you described, what do you think? |
looks good, but updateConn should probably be called updateAddr, which lets you keep the name updateConn for the existing function (there should be no need to rename this to reconnect) |
I changed method as you suggested. |
actually, looking more at it now, it would be nice to somehow enforce that if I think we can add this robustness and simplify the code by just, at the end of what do you think? |
I changed according to your comments. |
Fix updating pattern and route address
thanks @pwielgolaski for your work. looks good. |
Updating was not working for pattern and address at all.