on master help sign in
adding comment.
commit5d849c9e3531e42497ff31828506ff6f44ddd1c4 authorKazu Yamamoto <kazu@iij.ad.jp> dateTue 22 Dec 2015, 12:13 (11 years ago) parent468d992
1 file changed+6
warp/Network/Wai/Handler/Warp/HTTP2/Worker.hs+6
warp/Network/Wai/Handler/Warp/HTTP2/Worker.hs+6
@@ -65,6 +65,12 @@ response ii settings Context{outputQ} mgr tconf th strm req rsp
6565 !hs0 = responseHeaders rsp
6666 !logger = S.settingsLogger settings req
6767
68+ -- Ideally, log messages should be written when responses are
69+ -- actually sent. But there is no way to keep good memory usage
70+ -- (resist to Request leak) and throughput. By compromise,
71+ -- log message are written here even the window size of streams
72+ -- is 0.
73+
6874 responseNoBody s hs = responseBuilderCore s hs mempty OneshotWithoutBody
6975
7076 responseBuilderBody s hs bdy = responseBuilderCore s hs bdy OneshotWithBody