diff options
Diffstat (limited to 'src/examples/mhd2spdy_spdy.c')
-rw-r--r-- | src/examples/mhd2spdy_spdy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/examples/mhd2spdy_spdy.c b/src/examples/mhd2spdy_spdy.c index fb749291..2c06ef88 100644 --- a/src/examples/mhd2spdy_spdy.c +++ b/src/examples/mhd2spdy_spdy.c | |||
@@ -188,6 +188,9 @@ spdy_cb_send(spdylay_session *session, | |||
188 | 188 | ||
189 | PRINT_INFO2("%zd bytes written by spdy", rv); | 189 | PRINT_INFO2("%zd bytes written by spdy", rv); |
190 | 190 | ||
191 | if(rv > 0) | ||
192 | UPDATE_STAT(glob_stat.spdy_bytes_sent, rv); | ||
193 | |||
191 | return rv; | 194 | return rv; |
192 | } | 195 | } |
193 | 196 | ||
@@ -257,6 +260,10 @@ spdy_cb_recv(spdylay_session *session, | |||
257 | else if(rv == 0) | 260 | else if(rv == 0) |
258 | rv = SPDYLAY_ERR_EOF; | 261 | rv = SPDYLAY_ERR_EOF; |
259 | } | 262 | } |
263 | |||
264 | if(rv > 0) | ||
265 | UPDATE_STAT(glob_stat.spdy_bytes_received, rv); | ||
266 | |||
260 | return rv; | 267 | return rv; |
261 | } | 268 | } |
262 | 269 | ||