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

Support re-joining after disconnect #4

Open
NerdyProjects opened this issue Nov 24, 2015 · 2 comments
Open

Support re-joining after disconnect #4

NerdyProjects opened this issue Nov 24, 2015 · 2 comments

Comments

@NerdyProjects
Copy link
Contributor

On my mumble setup, all users are disconnected because of a server restart every night.

Currently, mumsi crashes with

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  write: Broken pipe
Aborted (core dumped)

and I would like to see mumlib catching this error and giving some disconnect event or whatever.

@slomkowski
Copy link
Owner

In this case I'll wrap it with mumlib::MumlibException. See slomkowski/mumsi#5.

@slomkowski
Copy link
Owner

I've made some changes to support reconnection better. The best way to reconnect is to recreate object as shown in the loop in mumlib_example.cpp. I've ran into some issues, when I try to call disconnect and connect after Broken pipe error.

I think it's possible to implement reconnection in Mumsi in similar manner.

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

No branches or pull requests

2 participants