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 bug of "server crashed when client is killed" #27

Merged
merged 1 commit into from
Aug 23, 2020

Conversation

genshen
Copy link
Owner

@genshen genshen commented Aug 23, 2020

This merge fixed the bug mentioned in issue #26 .

… on closed channel"

In old implementation, if we use channel to pass proxy event (e.g. establishing, register,
unregister event), server may get panic "send on closed channel". In this commit, all channel
usage for proxy event passing purpose are removed, and replaced with direct function calls.

As an example, in v0.5.0-beta, we use channel to passed register event after remote host
dailing is successful. But the websocket connection between server and client can get closed
due to some reason, which can make register channel closed. Then the register event would be
send to a closed channel and raise a panic error.

fix #26, re #19
@genshen genshen changed the title merge(server): fix bug of "server crashed when client is killed" Fix bug of "server crashed when client is killed" Aug 23, 2020
@genshen genshen merged commit 48031dc into master Aug 23, 2020
@genshen genshen deleted the fix-server-crashed-if-client-killed branch August 23, 2020 09:16
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.

1 participant