Table of Contents

Enum AgentHttp.Types.HttpStreamResetCode

Namespace
Livekit.Server.Sdk.Dotnet
Assembly
LivekitApi.dll

why a stream was reset before any HTTP bytes flowed. This travels as the QUIC RESET_STREAM / STOP_SENDING error code, so it is a number with no room for detail: the reason string is logged by the side that reset and joined to this by request_id. An outcome after bytes have flowed travels in trailers instead, where it cannot race them.

public enum AgentHttp.Types.HttpStreamResetCode

Fields

[OriginalName("HSR_ABORT")] HsrAbort = 0

no information. The ordinary cancel code, sent whenever a stream is torn down without a specific outcome, so it must stay the zero value and must not imply that anything was or was not applied.

[OriginalName("HSR_INTERNAL")] HsrInternal = 2

the application was entered and then failed before producing a response head; side effects may already have happened, so this is not safe to retry.

[OriginalName("HSR_PROTOCOL")] HsrProtocol = 4

the peer's bytes were not valid HTTP/1.1

[OriginalName("HSR_REFUSED")] HsrRefused = 1

the worker aborted before any application code observed the request, so nothing was applied and the exchange is safe to retry. Requires that the application was never entered; a 404 it returned is an ordinary response.

[OriginalName("HSR_TIMEOUT")] HsrTimeout = 3

the deadline elapsed before a response head was produced