Skip to content

Non UTF-8 messages will throw exception #46

@znjp

Description

@znjp

If a connected client sends non-UTF8 data, run() will throw an uncaught exception. I added a try/except to catch it, but maybe better options?

                    try:
                        connected_node_id   = connection.recv(4096).decode('utf-8')
                    except Exception as e:
                        print(e)
                        connection.close()
                        continue

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