Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix http reuse connections #94

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

Merged
merged 1 commit into from
May 19, 2022
Merged

Conversation

andrewchernyh
Copy link
Contributor

@andrewchernyh andrewchernyh commented May 19, 2022

Fix reusing of HTTP Connection
return while reading lines will close Generator and cause GeneratorExit exception, that will close connection & socket

In this case system will produce TCP RST packet.

Closes #95

@hallacy hallacy merged commit 4d2cab1 into openai:main May 19, 2022
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
stainless-app bot pushed a commit that referenced this pull request Mar 27, 2025
Remove $ from npm install command
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.

HTTP Connection is not reused in stream mode
2 participants