We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236f929 commit aefa0ffCopy full SHA for aefa0ff
network-mux/src/Network/Mux/Bearer.hs
@@ -73,6 +73,10 @@ withReadBufferIO f = allocaBytesAligned size 8 $ \ptr -> do
73
v <- atomically $ newTVar BL.empty
74
f $ Just $ ReadBuffer v ptr size
75
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.
80
size = 131_072
81
82
makePipeChannelBearer :: MakeBearer IO PipeChannel
0 commit comments