Skip to content

ConnectAsync will block forever if there's an invalid extra header #404

@fstanis

Description

@fstanis

I just came across an interesting issue, I had a bug in my code that generated an invalid value for the Authorization header. This caused a very hard-to-debug issue where ConnectAsync would just block forever. Here's a minimum repro:

var client = new SocketIOClient.SocketIO("http://localhost:8080/", new SocketIOOptions
{
    ExtraHeaders = new()
    {
        { "Authorization", ":" }
    }
});
await client.ConnectAsync();

Edit: this sounds a lot like #300 however I'm using .NET 9.0

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