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

Reconnect to local router #21

Merged
merged 6 commits into from
Apr 12, 2021
Merged

Reconnect to local router #21

merged 6 commits into from
Apr 12, 2021

Conversation

mfranciszkiewicz
Copy link
Contributor

@mfranciszkiewicz mfranciszkiewicz commented Apr 8, 2021

Resolves #13 (network interface down / sleep fix)

Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

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

LGTM!

Tested it on my slow provider and it works better, but still crashes from time to time

@mfranciszkiewicz mfranciszkiewicz merged commit f86db8c into main Apr 12, 2021
@mfranciszkiewicz mfranciszkiewicz deleted the mf/reconnect branch April 12, 2021 16:45
c.connected().not().then(|| log::warn!("connection lost"));
});
// restarts the actor
ctx.stop();
Copy link
Contributor

Choose a reason for hiding this comment

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

this probably needs some delay before restart, because it causes market test suite to hang using 100% CPU trying to reconnect in the infinite loop. I've used workaround, but it is dirty
golemfactory/yagna@1a1239a

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reesolved by #23

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.

local endpoints are gone after network outage
3 participants