mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibCore+LibHTTP+RequestServer: Send data via sockets instead of pipes
This brings the implementation on Unix in line with Windows, so we can drop a few ifdefs.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 11:26:19 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/84c0eb3dbfd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7504 Reviewed-by: https://github.com/konradekk Reviewed-by: https://github.com/trflynn89
@@ -418,7 +418,7 @@ ErrorOr<void> kill(pid_t pid, int signal)
|
||||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<size_t> transfer_file_through_pipe(int source_fd, int target_fd, size_t source_offset, size_t source_length)
|
||||
ErrorOr<size_t> transfer_file_through_socket(int source_fd, int target_fd, size_t source_offset, size_t source_length)
|
||||
{
|
||||
// FIXME: We could use TransmitFile (https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile)
|
||||
// here. But in order to transmit a subset of the file, we have to use overlapped IO.
|
||||
|
||||
Reference in New Issue
Block a user