Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

ALPN support for HTTP/2 #293

@justcoding121

Description

@justcoding121

@honfika

I wonder if we can also do ALPN extension support by doing a small hack here. That would help us to jump start working on HTTP/2, since almost all servers use ALPN along with HTTP/2 over TLS. Currently I don't see ALPN support going to be added to SslStream anytime soon.

dotnet/corefx#4721

I haven't done much research, but in my understanding all we need to is to add the ALPN extension in client hello and read the selected protocol from server hello extension. So if we can read server hello, then the difficulty would be inserting the ALPN extension to the client hello. May be it can be done by using our own insert stream (like peek stream) over the server buffered stream. So when we call AuthenticateAsClient, we will pass our insert stream to modify the client hello before sending it to server.

Again just a thought, I am not sure if there is any type of data integrity check associated with client hello. So..

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