Fix: swallow _receiveTask exceptions in SseClientSessionTransport.CloseAsync (#1432)
Co-authored-by: Xue Cai <xuecai@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
This commit is contained in:
parent
e03acd1e7c
commit
ec216b5202
1 changed files with 55 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ internal sealed partial class SseClientSessionTransport : TransportBase
|
|||
{
|
||||
LogTransportConnectFailed(Name, ex);
|
||||
await CloseAsync().ConfigureAwait(false);
|
||||
throw new IOException("Failed to connect transport.", ex);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -198,7 +198,6 @@ internal sealed partial class SseClientSessionTransport : TransportBase
|
|||
|
||||
LogTransportReadMessagesFailed(Name, ex);
|
||||
_connectionEstablished.TrySetException(ex);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
Loading…
Reference in a new issue