Files
swift-nio/Tests
Chris McGeeandCory Benfield e1b2a99d12 Provide documentation and context information for NIOTooManyBytesError (#2831)
### Motivation:

The NIOTooManyBytesError doesn't have any documentation for someone that
encounters this error. Also, they have no idea the magnitude of the
limit that was set to decide if the payload is an unreasonable size.

### Modifications:

Provide documentation that explains the situation when the error occurs,
which is the upTo limit of an AsyncSequence is exceeded. Describe one
potential action, which is to increase this limit.

Provide the maxBytes in the error so that the user can gauge whether the
upTo limit is already reasonable and the payload size is excessive, or
the limit needs to be increased to suit more situations.

### Result:

There will be documentation for the NIOTooManyBytesError so that if
someone looks it up they will have a better understanding of the
situation, and possible actions. The limit will be included in the error
to give them an idea of the scale of the payload limit that is in place,
or potentially the configuration value that they can change.

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2024-08-28 20:37:39 +01:00
..
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00