Skip to content

Garbage when clients don't disconnect #72

@ghost

Description

It seems that if clients (or even the same client) reconnect without disconnect first, they will receive garbage chars.
For example in an html page I have a "Connect" button:

  1. load the page
  2. press connect
  3. open the port and all is fine
  4. reload the page, without disconnect first
  5. try to connect again - ok
  6. open the port - ok
  7. now the received data is wrong, with all the chars shuffled

To get the things back to work I have to restart the serial-port-json-server.
it's a known behavior? Is there a way to avoid this? I'm interested in only one client at time, so it would be fine to forcefully disconnect any client before accept a new connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions