Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http2: handle existing socket data when creating HTTP/2 server sessions #41185

Merged
merged 1 commit into from Dec 23, 2021

Commits on Dec 15, 2021

  1. http2: handle existing socket data when creating HTTP/2 server sessions

    When emitting a 'connection' event to manually inject connections into a
    server, it's common for the provided stream to already contain readable
    data, e.g. after sniffing a connection to detect HTTP/2 from the initial
    bytes.
    
    Previously this was supported only for outgoing HTTP/2 sessions created
    with http2.connect(). This change ensures that HTTP/2 over existing
    streams is supported on both outgoing and incoming sessions.
    pimterry committed Dec 15, 2021
    Copy the full SHA
    99fb561 View commit details
    Browse the repository at this point in the history