Changeset 5073:52eb762c68a9 in nginx
- Timestamp:
- 02/18/13 15:08:46 (11 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@5074
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/http/ngx_http_upstream.c
r5072 r5073 56 56 ngx_http_upstream_t *u); 57 57 static void ngx_http_upstream_process_upgraded(ngx_http_request_t *r, 58 ngx_uint_t from_upstream );58 ngx_uint_t from_upstream, ngx_uint_t do_write); 59 59 static void 60 60 ngx_http_upstream_process_non_buffered_downstream(ngx_http_request_t *r); … … 2433 2433 || u->buffer.pos != u->buffer.last) 2434 2434 { 2435 ngx_http_upstream_process_upgraded(r, 1 );2435 ngx_http_upstream_process_upgraded(r, 1, 1); 2436 2436 } 2437 2437 … … 2439 2439 || r->header_in->pos != r->header_in->last) 2440 2440 { 2441 ngx_http_upstream_process_upgraded(r, 0 );2441 ngx_http_upstream_process_upgraded(r, 0, 1); 2442 2442 } 2443 2443 } … … 2447 2447 ngx_http_upstream_upgraded_read_downstream(ngx_http_request_t *r) 2448 2448 { 2449 ngx_http_upstream_process_upgraded(r, 0 );2449 ngx_http_upstream_process_upgraded(r, 0, 0); 2450 2450 } 2451 2451 … … 2454 2454 ngx_http_upstream_upgraded_write_downstream(ngx_http_request_t *r) 2455 2455 { 2456 ngx_http_upstream_process_upgraded(r, 1 );2456 ngx_http_upstream_process_upgraded(r, 1, 1); 2457 2457 } 2458 2458 … … 2462 2462 ngx_http_upstream_t *u) 2463 2463 { 2464 ngx_http_upstream_process_upgraded(r, 1 );2464 ngx_http_upstream_process_upgraded(r, 1, 0); 2465 2465 } 2466 2466 … … 2470 2470 ngx_http_upstream_t *u) 2471 2471 { 2472 ngx_http_upstream_process_upgraded(r, 0 );2472 ngx_http_upstream_process_upgraded(r, 0, 1); 2473 2473 } 2474 2474 … … 2476 2476 static void 2477 2477 ngx_http_upstream_process_upgraded(ngx_http_request_t *r, 2478 ngx_uint_t from_upstream )2478 ngx_uint_t from_upstream, ngx_uint_t do_write) 2479 2479 { 2480 2480 size_t size; 2481 2481 ssize_t n; 2482 2482 ngx_buf_t *b; 2483 ngx_uint_t do_write;2484 2483 ngx_connection_t *c, *downstream, *upstream, *dst, *src; 2485 2484 ngx_http_upstream_t *u;
Note:
See TracChangeset
for help on using the changeset viewer.