comparison src/http/ngx_http_upstream.h @ 5072:7fa7e60a7f66

Proxy: support for connection upgrade (101 Switching Protocols). This allows to proxy WebSockets by using configuration like this: location /chat/ { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } Connection upgrade is allowed as long as it was requested by a client via the Upgrade request header.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 18 Feb 2013 13:50:52 +0000
parents fd84344f1df7
children 05c53652e7b4
comparison
equal deleted inserted replaced
5071:e14b49c12a73 5072:7fa7e60a7f66
282 282
283 ngx_http_upstream_headers_in_t headers_in; 283 ngx_http_upstream_headers_in_t headers_in;
284 284
285 ngx_http_upstream_resolved_t *resolved; 285 ngx_http_upstream_resolved_t *resolved;
286 286
287 ngx_buf_t from_client;
288
287 ngx_buf_t buffer; 289 ngx_buf_t buffer;
288 off_t length; 290 off_t length;
289 291
290 ngx_chain_t *out_bufs; 292 ngx_chain_t *out_bufs;
291 ngx_chain_t *busy_bufs; 293 ngx_chain_t *busy_bufs;
327 unsigned cache_status:3; 329 unsigned cache_status:3;
328 #endif 330 #endif
329 331
330 unsigned buffering:1; 332 unsigned buffering:1;
331 unsigned keepalive:1; 333 unsigned keepalive:1;
334 unsigned upgrade:1;
332 335
333 unsigned request_sent:1; 336 unsigned request_sent:1;
334 unsigned header_sent:1; 337 unsigned header_sent:1;
335 }; 338 };
336 339