# HG changeset patch # User Maxim Dounin # Date 1395243009 -14400 # Node ID c15350f4071c0207cdffbc8bbb3f28e8e57f4d86 # Parent 68c6cc832c7680dd8926e924193252a1b85b9c94 SPDY: improved ngx_http_spdy_state_save() again. diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -1879,13 +1879,13 @@ ngx_http_spdy_state_save(ngx_http_spdy_c 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;