Files
swift-nio-ssl/Tests
Cory Benfield 15d2090ae3 Tolerate zeroReturnError in closed/unwrapped (#323)
Motivation:

In some rare cases we've seen production applications crash due to us
getting a zeroReturnError in either closed or perhaps unwrapped. This is
pretty hard to get to trigger in realistic situations, but I've found a
contrived-but-possible way to hit it in tests. In both of these cases we
are able to simply ignore the error and move on.

Modifications:

- Added a test to replicate the issue
- Tolerate .unwrapped and .closed on zeroReturnError.

Result:

Fewer weird crashes
2021-09-21 15:43:17 +01:00
..