Skip to content

Server received TCP FIN before WebSocket close frame #177

@toini

Description

@toini

I'm debugging an issue with evcc and noticed that when v0.14.0 of this client reconnects it appears to close the connection by calling conn.Close() without first sending a close frame. I think according to RFC6455 a close frame should be sent.

This, in combination with a recent change on our server makes it unable to decrement a client connection counter which makes the server block the connections from the client which currently makes the client reconnect again after 5 seconds leading to issues with unusually high traffic.

I'll adjust the server to handle the situation more gracefully, but I think it would also be a good idea to make this client send a close frame?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions