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

Half TCP connection closed error #8

Closed
ChaitanyaYeole02 opened this issue Sep 21, 2022 · 1 comment
Closed

Half TCP connection closed error #8

ChaitanyaYeole02 opened this issue Sep 21, 2022 · 1 comment

Comments

@ChaitanyaYeole02
Copy link

ChaitanyaYeole02 commented Sep 21, 2022

I received this error when I disconnected my charger while a message was still in process.
@villekr This could be changed in the next version.

    async def on_receive(self, *, message: str, context: RouterContext):
        router: Router = self.routers[context.subprotocol]
        try:
            await router.route_message(message=message, context=context)
        except:
            pass
@villekr
Copy link
Owner

villekr commented Sep 24, 2022

This should be handled correctly in fix #11.

villekr added a commit that referenced this issue Sep 24, 2022
Fix error when charging station disconnects during on-going messaging #8
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