Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SeqIngestionApi not calling TryIngestAsync with ConfigureAwait(false) #215

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

lordmilko
Copy link
Contributor

SeqIngestionApi is missing a call to ConfigureAwait(false). When writing events to a SeqAuditSink from a thread that has a synchronization context, SeqAuditSink.Emit will block the thread waiting for the HttpClient request to complete, causing a deadlock when the synchronization context tries to resume on the thread that SeqAuditSink.Emit is blocking

@nblumhardt nblumhardt merged commit 7a1b3c7 into datalust:dev Apr 1, 2024
1 check passed
@nblumhardt
Copy link
Member

Thanks! 👍

@lordmilko lordmilko deleted the patch-1 branch April 1, 2024 07:37
@nblumhardt nblumhardt mentioned this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants