Open weissi opened 1 month ago
Agree. This intersects a bit weirdly with https://github.com/apple/swift-nio/issues/2878 – if .gigabytes(.max)
is okay, is .megabytes(.max)
okay? Maybe we should reshape the API and allow maximumSizeAllowed
to be nil
or add a sentinel value to the ByteCount
which makes the intent clearer (.max
, maybe?).
Agree. This intersects a bit weirdly with #2878 – if
.gigabytes(.max)
is okay, is.megabytes(.max)
okay? Maybe we should reshape the API and allowmaximumSizeAllowed
to benil
or add a sentinel value to theByteCount
which makes the intent clearer (.max
, maybe?).
Yes, I'd suggest just .unlimitedDangerousForSecurityReasons
or something straight on ByteCount
.
Feels weird having it on ByteCount
but it might just be the pragmatic choice.
Feels weird having it on
ByteCount
but it might just be the pragmatic choice.
Why? ByteCount.unlimited
sounds alright, no?
crashes with
but it shouldn't.