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 streaming to file descriptor (#943) #944

Closed

Conversation

jscheid
Copy link
Contributor

@jscheid jscheid commented Dec 11, 2024

  • Don't assume all data can always be written in one go.
  • Handle EAGAIN.

- Don't assume all data can always be written in one go.
- Handle EAGAIN.
Comment on lines +60 to +61
if (errno == EAGAIN) {
continue;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This doesn't seem quite right yet - should we poll(2) here? Also I think we need to handle EWOULDBLOCK and EINTR for full compatibility. Is this related to #723 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are also potential issues around the GVL here - on second thought I think maybe better to simply remove the special case for FILE_IO altogether.

@jscheid
Copy link
Contributor Author

jscheid commented Dec 11, 2024

Closing in favor of #945.

@jscheid jscheid closed this Dec 11, 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.

1 participant