• Piotr Sikora's avatar
    Fix handling of SETTINGS_MAX_CONCURRENT_STREAMS. · 2ba13899
    Piotr Sikora authored
    The maximum number of outgoing concurrent streams is initially
    limited to 100 to avoid issues when the local endpoint submits
    lots of requests before receiving initial SETTINGS frame from
    the remote endpoint, since sending them at once to the remote
    endpoint could lead to rejection of some of the requests.
    
    This initial limit is overwritten with the value advertised in
    SETTINGS_MAX_CONCURRENT_STREAMS setting by the remote endpoint,
    but previously, it wasn't lifted if the remote endpoint didn't
    advertise that setting (implying no limits), in which case the
    limit of 100 was retained, even though it was never advertised
    by the remote endpoint.
    Signed-off-by: default avatarPiotr Sikora <piotrsikora@google.com>
    2ba13899
nghttp2_session_test.c 374 KB