Skip to content

sasl: spec recommendations breaks single roundtrip connection registration #536

@emersion

Description

@emersion

Clients want to minimize the number of roundtrips used to connect to an IRC server, especially on flaky connections such as mobile phones/hotspots. To this end, some clients (including gamja, goguma) send multiple commands in a single burst without waiting for the server reply.

The following commands are sent in a single burst:

AUTHENTICATE PLAIN
AUTHENTICATE <base64>
CAP END

The spec says:

If the client completes registration (with CAP END, NICK, USER and any other necessary messages) while the SASL authentication is still in progress, the server SHOULD abort it and send a 906 numeric, then register the client without authentication.

Ref inspircd/inspircd#2086

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