Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: refactored ngx_http_spdy_state_read_data().

Valentin Bartenev
April 07, 2014 11:30AM
details: http://hg.nginx.org/nginx/rev/d2ac5cf4056d
branches:
changeset: 5642:d2ac5cf4056d
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Apr 07 19:27:56 2014 +0400
description:
SPDY: refactored ngx_http_spdy_state_read_data().

There's no more need in a separate indicator of frame completeness
after d74889fbf06d.

diffstat:

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

diffs (34 lines):

diff -r 0aeb6f63d242 -r d2ac5cf4056d src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c Mon Apr 07 19:27:56 2014 +0400
+++ b/src/http/ngx_http_spdy.c Mon Apr 07 19:27:56 2014 +0400
@@ -1498,7 +1498,6 @@ ngx_http_spdy_state_read_data(ngx_http_s
ssize_t n;
ngx_buf_t *buf;
ngx_int_t rc;
- ngx_uint_t complete;
ngx_temp_file_t *tf;
ngx_http_request_t *r;
ngx_http_spdy_stream_t *stream;
@@ -1523,12 +1522,8 @@ ngx_http_spdy_state_read_data(ngx_http_s

size = end - pos;

- if (size >= sc->length) {
+ if (size > sc->length) {
size = sc->length;
- complete = 1;
-
- } else {
- complete = 0;
}

r = stream->request;
@@ -1600,7 +1595,7 @@ ngx_http_spdy_state_read_data(ngx_http_s
r->request_length += size;
}

- if (!complete) {
+ if (sc->length) {
return ngx_http_spdy_state_save(sc, pos, end,
ngx_http_spdy_state_read_data);
}

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

[nginx] SPDY: refactored ngx_http_spdy_state_read_data().

Valentin Bartenev 542 April 07, 2014 11:30AM



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

Online Users

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