diff options
Diffstat (limited to 'src/cowboy_metrics_h.erl')
-rw-r--r-- | src/cowboy_metrics_h.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_metrics_h.erl b/src/cowboy_metrics_h.erl index f9a1363..309afde 100644 --- a/src/cowboy_metrics_h.erl +++ b/src/cowboy_metrics_h.erl @@ -243,6 +243,8 @@ fold([{headers, Status, Headers}|Tail], end, resp_start=RespStart }); +%% @todo It might be worthwhile to keep the sendfile information around, +%% especially if these frames ultimately result in a sendfile syscall. fold([{data, nofin, Data}|Tail], State=#state{resp_body_length=RespBodyLen}) -> fold(Tail, State#state{ resp_body_length=RespBodyLen + resp_body_length(Data) |