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

Support for RT_SIGNAL_LEASE and sendfile? #106

Open
Chris00 opened this issue Jul 29, 2016 · 1 comment
Open

Support for RT_SIGNAL_LEASE and sendfile? #106

Chris00 opened this issue Jul 29, 2016 · 1 comment

Comments

@Chris00
Copy link

Chris00 commented Jul 29, 2016

"Protecting" write from a mmap'ed with RT_SIGNAL_LEASE would allow the write to terminate reporting the number of bytes written before a possible interruption by, say, another process truncating the file. Would that be useful in Unix_cstruct and/or Lwt_cstruct?

In the same vein, Lwt_cstruct.sendfile may be useful (for example to send a big file on the wire using Cohttp). A similar function seems to be available on Windows.

Your thoughts?

@avsm
Copy link
Member

avsm commented Mar 25, 2019

I think both of these functions would be useful, but the RT_SIGNAL_LEASE needs to be protected to be linux-only, and sendfile should ideally be implemented upstream in Lwt.

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

No branches or pull requests

2 participants