You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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?
The text was updated successfully, but these errors were encountered:
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.
"Protecting"
write
from a mmap'ed withRT_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 inUnix_cstruct
and/orLwt_cstruct
?In the same vein,
Lwt_cstruct.sendfile
may be useful (for example to send a big file on the wire usingCohttp
). A similar function seems to be available on Windows.Your thoughts?
The text was updated successfully, but these errors were encountered: