Skip to content

Commit 33fe4b6

Browse files
committed
fix: sendfile may hang on linux (#2721)
1 parent 17e3507 commit 33fe4b6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lua/fzf-lua/rpc.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ local function server_listen(server_socket, server_socket_path)
4646
os.exit(0)
4747
end
4848

49-
if _is_linux then
50-
while true do
51-
local len = uv.fs_sendfile(1, receive_socket:fileno(), 0, 1024 * 1024)
52-
local eof = len == 0
53-
if eof then finish() end
54-
end
55-
end
49+
-- if _is_linux then
50+
-- while true do
51+
-- local len = uv.fs_sendfile(1, receive_socket:fileno(), 0, 1024 * 1024)
52+
-- local eof = len == 0
53+
-- if eof then finish() end
54+
-- end
55+
-- end
5656

5757
receive_socket:read_start(function(err, data)
5858
assert(not err)

0 commit comments

Comments
 (0)