Skip to content

Commit eb72f19

Browse files
authored
Fix UnexpectedFrameError flaky tests (#31707)
1 parent 1d7443d commit eb72f19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Servers/Kestrel/Core/src/Internal/Http3/Http3Connection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,13 @@ public void Abort(ConnectionAbortedException ex, Http3ErrorCode errorCode)
178178

179179
if (!previousState)
180180
{
181+
_errorCodeFeature.Error = (long)errorCode;
182+
181183
if (TryClose())
182184
{
183185
SendGoAway(_highestOpenedStreamId).Preserve();
184186
}
185187

186-
_errorCodeFeature.Error = (long)errorCode;
187188
_multiplexedContext.Abort(ex);
188189
}
189190
}

0 commit comments

Comments
 (0)