Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request_body.c @ 6246:257b51c37c5a
The HTTP/2 implementation (RFC 7240, 7241).
The SPDY support is removed, as it's incompatible with the new module.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 11 Sep 2015 20:13:06 +0300 |
parents | 231a5bbd9e9c |
children | 02abce4764b7 |
comparison
equal
deleted
inserted
replaced
6245:3cf25d33886a | 6246:257b51c37c5a |
---|---|
38 ngx_http_request_body_t *rb; | 38 ngx_http_request_body_t *rb; |
39 ngx_http_core_loc_conf_t *clcf; | 39 ngx_http_core_loc_conf_t *clcf; |
40 | 40 |
41 r->main->count++; | 41 r->main->count++; |
42 | 42 |
43 #if (NGX_HTTP_SPDY) | 43 #if (NGX_HTTP_V2) |
44 if (r->spdy_stream && r == r->main) { | 44 if (r->stream && r == r->main) { |
45 r->request_body_no_buffering = 0; | 45 r->request_body_no_buffering = 0; |
46 rc = ngx_http_spdy_read_request_body(r, post_handler); | 46 rc = ngx_http_v2_read_request_body(r, post_handler); |
47 goto done; | 47 goto done; |
48 } | 48 } |
49 #endif | 49 #endif |
50 | 50 |
51 if (r != r->main || r->request_body || r->discard_body) { | 51 if (r != r->main || r->request_body || r->discard_body) { |
568 { | 568 { |
569 ssize_t size; | 569 ssize_t size; |
570 ngx_int_t rc; | 570 ngx_int_t rc; |
571 ngx_event_t *rev; | 571 ngx_event_t *rev; |
572 | 572 |
573 #if (NGX_HTTP_SPDY) | 573 #if (NGX_HTTP_V2) |
574 if (r->spdy_stream && r == r->main) { | 574 if (r->stream && r == r->main) { |
575 r->spdy_stream->skip_data = NGX_SPDY_DATA_DISCARD; | 575 r->stream->skip_data = NGX_HTTP_V2_DATA_DISCARD; |
576 return NGX_OK; | 576 return NGX_OK; |
577 } | 577 } |
578 #endif | 578 #endif |
579 | 579 |
580 if (r != r->main || r->discard_body || r->request_body) { | 580 if (r != r->main || r->discard_body || r->request_body) { |