setting bufferSize to 16384.
commitf840e0f5e43fe970040fae65caf0bb5990c45c8c
authorKazu Yamamoto <kazu@iij.ad.jp>
dateWed 10 Jun 2015, 14:02 (11 years ago)
parent27f2c4e
warp/Network/Wai/Handler/Warp/Buffer.hs+4−2
@@ -63,9 +63,11 @@ withBufferPool pool f = do
6363type Buffer = Ptr Word8
6464type BufSize = Int
6565
66−-- FIXME come up with good values here
66+-- 2^14 = 1024 * 16
67+-- The maximum size of TLS record
68+-- The maximum size of HTTP/2 frame payload (excluding frame header)
6769bufferSize :: BufSize
68−bufferSize = 4096
70+bufferSize = 16384
6971
7072allocateBuffer :: Int -> IO Buffer
7173allocateBuffer = mallocBytes