Skip to content

Fix os sendfile #2851

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 3 commits into from
Aug 14, 2021
Merged

Fix os sendfile #2851

merged 3 commits into from
Aug 14, 2021

Conversation

deantvv
Copy link
Contributor

@deantvv deantvv commented Aug 11, 2021

For #1175

In python, `count` in `sendfile` doesn't include nbytes in headers or trailers.
But in `nix::sys::sendfile::sendfile` does.

From nix doc,
```
If any headers are specified and `count` is non-zero,
the length of the headers will be counted in the limit of total bytes sent.
```
@coolreader18 coolreader18 merged commit cc40ae0 into RustPython:master Aug 14, 2021
@deantvv deantvv deleted the fix-os-sendfile branch August 14, 2021 06:42
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.

3 participants