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 the echo server example to prevent ConnectionClosed error #189

Merged
merged 1 commit into from Sep 16, 2021
Merged

Fix the echo server example to prevent ConnectionClosed error #189

merged 1 commit into from Sep 16, 2021

Commits on Sep 15, 2021

  1. Fix the echo server example to prevent ConnectionClosed error

    Related #188
    
    The echo server would generate ConnectionClosed error when the peer
    close the connection normally. This is because that `tungstenite` crate
    automatically reply Close message to the peer. Then StreamExt::forward()
    also forwards the Close message after the connection is closed.
    Leo1003 committed Sep 15, 2021
    Copy the full SHA
    451d642 View commit details
    Browse the repository at this point in the history