Skip to content

Commit aefa0ff

Browse files
committed
fixup address review comments
1 parent 236f929 commit aefa0ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

network-mux/src/Network/Mux/Bearer.hs

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ withReadBufferIO f = allocaBytesAligned size 8 $ \ptr -> do
7373
v <- atomically $ newTVar BL.empty
7474
f $ Just $ ReadBuffer v ptr size
7575
where
76+
-- Maximum amount of data read in one call.
77+
-- Corresponds to the default readbuffer size on Linux.
78+
-- We want it larger than 64Kbyte, but not too large since
79+
-- it is a memory overhead per mux bearer in an application.
7680
size = 131_072
7781

7882
makePipeChannelBearer :: MakeBearer IO PipeChannel

0 commit comments

Comments
 (0)