hyperium / h2

HTTP 2.0 client & server implementation for Rust.
MIT License
1.35k stars 270 forks source link

Potential issue with max concurrent streams #550

Closed cynecx closed 1 year ago

cynecx commented 3 years ago

See https://github.com/hyperium/hyper/issues/2419.

This can be reproduced "faster" by limiting the max concurrent streams on the server side (go):

import (
    "net/http"
    "golang.org/x/net/http2"
...
)
...
    server := &http.Server{Addr: ":9001", Handler: r, ErrorLog: logger}
    http2.ConfigureServer(server, &http2.Server{
        MaxConcurrentStreams: 4,
    })