1
0
mirror of https://github.com/apple/swift-nio-extras.git synced 2025-06-01 02:34:14 +08:00
George Barnett a8e195bdf8
Fail outstanding promises in channelInactive in the RequestResponseHandler ()
Motivation:

It's possible for channels to be closed without an error; and the
`RequestResponseHandler` should tolerate that by failing any promises
for which it does not have a response for.

Modifications:

- Add `ClosedBeforeReceivingResponseError`
- Fail outstanding promises with `ClosedBeforeReceivingResponseError` in
  `RequestResponseHandler.channelInactive`
- Add a test.

Result:

Outstanding request promises are failed when the channel becomes inactive.
2020-08-24 07:35:13 +01:00
..
2019-02-26 13:01:48 +00:00