Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: improved debug logging of inflate() calls.

Valentin Bartenev
November 17, 2014 01:22PM
details: http://hg.nginx.org/nginx/rev/571e66f7c12c
branches:
changeset: 5903:571e66f7c12c
user: Valentin Bartenev <vbart@nginx.com>
date: Fri Nov 07 17:19:12 2014 +0300
description:
SPDY: improved debug logging of inflate() calls.

diffstat:

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

diffs (50 lines):

diff -r b7a37f6a25ea -r 571e66f7c12c src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c Mon Nov 17 16:38:48 2014 +0300
+++ b/src/http/ngx_http_spdy.c Fri Nov 07 17:19:12 2014 +0300
@@ -1065,16 +1065,16 @@ ngx_http_spdy_state_headers(ngx_http_spd
: Z_OK;
}

- if (z != Z_OK) {
- return ngx_http_spdy_state_inflate_error(sc, z);
- }
-
ngx_log_debug5(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"spdy inflate out: ni:%p no:%p ai:%ud ao:%ud rc:%d",
sc->zstream_in.next_in, sc->zstream_in.next_out,
sc->zstream_in.avail_in, sc->zstream_in.avail_out,
z);

+ if (z != Z_OK) {
+ return ngx_http_spdy_state_inflate_error(sc, z);
+ }
+
sc->length -= sc->zstream_in.next_in - pos;
pos = sc->zstream_in.next_in;

@@ -1164,6 +1164,12 @@ ngx_http_spdy_state_headers(ngx_http_spd

z = inflate(&sc->zstream_in, Z_NO_FLUSH);

+ ngx_log_debug5(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "spdy inflate out: ni:%p no:%p ai:%ud ao:%ud rc:%d",
+ sc->zstream_in.next_in, sc->zstream_in.next_out,
+ sc->zstream_in.avail_in, sc->zstream_in.avail_out,
+ z);
+
if (z != Z_OK) {
return ngx_http_spdy_state_inflate_error(sc, z);
}
@@ -1265,6 +1271,12 @@ ngx_http_spdy_state_headers_skip(ngx_htt

n = inflate(&sc->zstream_in, Z_NO_FLUSH);

+ ngx_log_debug5(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0,
+ "spdy inflate out: ni:%p no:%p ai:%ud ao:%ud rc:%d",
+ sc->zstream_in.next_in, sc->zstream_in.next_out,
+ sc->zstream_in.avail_in, sc->zstream_in.avail_out,
+ n);
+
if (n != Z_OK) {
return ngx_http_spdy_state_inflate_error(sc, n);
}

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

[nginx] SPDY: improved debug logging of inflate() calls.

Valentin Bartenev 478 November 17, 2014 01:22PM



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

Online Users

Guests: 265
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