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 Panic: Write After Handler Closed #332

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Fix Panic: Write After Handler Closed #332

merged 1 commit into from
Nov 5, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Nov 4, 2024

I think we get this issue (#319) because we check whether the context is cancelled before generating an AI response and then try to return the response. However, in between the initial check and actually having the response to send the context could have been cancelled.

So check if the context is done. before sending the response.

Fix #319

I think we get this issue (#319) because we check whether the context is cancelled
before generating an AI response and then try to return the response.
However, in between the initial check and actually having the response
to send the context could have been cancelled.

So check if the context is done. before sending the response.

Fix #319
Copy link
Contributor

@standard-input standard-input bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues flagged.
Standard Input can make mistakes. Check important info.

Copy link
Contributor

@standard-input standard-input bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues flagged.
Standard Input can make mistakes. Check important info.

Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for foyle canceled.

Name Link
🔨 Latest commit 93f7480
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/6728f495e190f20008ca7fc7

@jlewi jlewi merged commit 6b887ee into main Nov 5, 2024
5 checks passed
@jlewi jlewi deleted the jlewi/fixpanic branch November 5, 2024 01:51
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.

Crash: panic: Write called after Handler finished
1 participant