Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: improved ngx_http_spdy_state_save() again.

Maxim Dounin
March 19, 2014 11:32AM
details: http://hg.nginx.org/nginx/rev/c15350f4071c
branches:
changeset: 5618:c15350f4071c
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Mar 19 19:30:09 2014 +0400
description:
SPDY: improved ngx_http_spdy_state_save() again.

diffstat:

src/http/ngx_http_spdy.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

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;


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] SPDY: improved ngx_http_spdy_state_save() again.

Maxim Dounin 768 March 19, 2014 11:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready