Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for sentinel value when setting HTTP/3 error code
If no error code has been set, `IProtocolErrorFeature.Error` will be `-1`. If we pass that through verbatim, it will be caught by validation in the setter (ironically, of the same property on the same feature object), resulting in an exception and a Critical (but apparently benign) log message. Fixes dotnet#57933
- Loading branch information