Welcome! Log In Create A New Profile

Advanced

[PATCH] HTTP/2: style

Piotr Sikora
June 22, 2016 04:54PM
# HG changeset patch
# User Piotr Sikora <piotrsikora@google.com>
# Date 1466628474 25200
# Wed Jun 22 13:47:54 2016 -0700
# Node ID 6f69e3c0f780e29bca752fc1f938f4a459a1ec59
# Parent 191e23214dfbaf01255d421f5bbe0d5541d03a2f
HTTP/2: style.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

diff -r 191e23214dfb -r 6f69e3c0f780 src/http/v2/ngx_http_v2_filter_module.c
--- a/src/http/v2/ngx_http_v2_filter_module.c
+++ b/src/http/v2/ngx_http_v2_filter_module.c
@@ -974,12 +974,11 @@ static ngx_http_v2_out_frame_t *
ngx_http_v2_filter_get_data_frame(ngx_http_v2_stream_t *stream,
size_t len, ngx_chain_t *first, ngx_chain_t *last)
{
- u_char flags;
- ngx_buf_t *buf;
- ngx_chain_t *cl;
+ u_char flags;
+ ngx_buf_t *buf;
+ ngx_chain_t *cl;
ngx_http_v2_out_frame_t *frame;

-
frame = stream->free_frames;

if (frame) {
@@ -1007,7 +1006,7 @@ ngx_http_v2_filter_get_data_frame(ngx_ht

buf = cl->buf;

- if (!buf->start) {
+ if (buf->start == NULL) {
buf->start = ngx_palloc(stream->request->pool,
NGX_HTTP_V2_FRAME_HEADER_SIZE);
if (buf->start == NULL) {
@@ -1182,7 +1181,6 @@ ngx_http_v2_data_frame_handler(ngx_http_
ngx_http_v2_stream_t *stream;

stream = frame->stream;
-
cl = frame->first;

if (cl->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_module) {

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

[PATCH] HTTP/2: style

Piotr Sikora 351 June 22, 2016 04:54PM

Re: [PATCH] HTTP/2: style

Valentin V. Bartenev 181 June 23, 2016 10:20AM



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

Online Users

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