Description
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 . I'm developing some sort of a pool (agent?) for session.request()
is called)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)
.