Skip to content

Commit 75382e2

Browse files
authored
Merge pull request #510 from edwintorok/unix-packets
mirage-unix: increase TCP receive buffer size
2 parents 4f40f81 + 9d7fb79 commit 75382e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stack-unix/tcp_socket.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let disconnect _ =
1919
return_unit
2020

2121
let read fd =
22-
let buflen = 4096 in
22+
let buflen = 65536 in
2323
let buf = Cstruct.create buflen in
2424
Lwt.catch (fun () ->
2525
Lwt_cstruct.read fd buf

0 commit comments

Comments
 (0)