Mercurial > hg > nginx
changeset 5618:c15350f4071c
SPDY: improved ngx_http_spdy_state_save() again.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 19 Mar 2014 19:30:09 +0400 |
parents | 68c6cc832c76 |
children | 517b5b599e3f |
files | src/http/ngx_http_spdy.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_spdy.c Wed Mar 19 12:57:40 2014 +0400 +++ b/src/http/ngx_http_spdy.c Wed Mar 19 19:30:09 2014 +0400 @@ -1879,13 +1879,13 @@ if (size > NGX_SPDY_STATE_BUFFER_SIZE) { ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0, "spdy state buffer overflow: " - "%z bytes required", end - pos); + "%uz bytes required", size); return ngx_http_spdy_state_internal_error(sc); } ngx_memcpy(sc->buffer, pos, NGX_SPDY_STATE_BUFFER_SIZE); - sc->buffer_used = end - pos; + sc->buffer_used = size; sc->handler = handler; sc->incomplete = 1;