Skip to content

Graceful close for HTTP2 sessions #34265

Open
@szmarczak

Description

@szmarczak

Is your feature request related to a problem? Please describe.

IMO it would be very nice to have session.gracefullyClose() so pending streams can be finished but no more streams can be created on this session (or closing is canceled when session.request() is called). I'm developing some sort of a pool (agent?) for http2, and I need to gracefully close a session when it becomes a subset of another session.

I do NOT want to notify the server because they can reject current streams with REFUSED_STREAM which means it hasn't processed the request yet and it is safe to retry. But the request body could have been uploaded in that case.

Describe the solution you'd like

See the paragraph above.

Describe alternatives you've considered I can implement this on my own, eg. gracefullyClose(session).

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.http2Issues or PRs related to the http2 subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions