ngx_http_upstream.h ngx_http_upstream_round_robin.c ngx_http_upstream_round_robin.h ngx_http_variables.c ngx_http_variables.h ngx_http_write_filter_module.c mail misc os stream CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md SECURITY.mdBreadcrumbs nginx /src /http/ ...
ngx_stream_proxy_process(s,0,0); }elseif(u->upstream_buf.start) { ngx_stream_proxy_process(s,1,1); } } 开发者ID:92hackers,项目名称:reading-code-of-nginx-1.9.2,代码行数:25,代码来源:ngx_stream_proxy_module.c 示例6: ngx_http_proxy_connect_read_hello_data ▲点赞 1▼ staticvoidng...
staticngx_int_tnchan_output_filter_generic(ngx_http_request_t*r,nchan_msg_t*msg,ngx_chain_t*in){/* from push stream module, written by * Wandenberg Peixoto <[email protected]>, Rogério Carvalho Schneider <[email protected]> * thanks, guys! * modified to fit the needs of websockets ...
ngx_stream_upstream_least_conn_module.c ngx_stream_upstream_random_module.c ngx_stream_upstream_round_robin.c ngx_stream_upstream_round_robin.h ngx_stream_upstream_zone_module.c ngx_stream_variables.c ngx_stream_variables.h ngx_stream_write_filter_module.c .gitignore .hgtags nginx.specBreadcru...
610staticngx_int_t611ngx_event_process_init(ngx_cycle_t*cycle)612{...776777ls=cycle->listening.elts;778for(i=0;i<cycle->listening.nelts;i++){786c=ngx_get_connection(ls[i].fd,cycle->log);795c->listening=&ls[i];796ls[i].connection=c;865rev->handler=(c->type==SOCK_STREAM)?ngx...
#if (NGX_STREAM_SSL) #include <ngx_stream_ssl_module.h> #endif // 类似ngx_http_request_t,表示tcp通信的会话 // 存储有tcp处理里需要的数据,例如connection、ctx等 typedef struct ngx_stream_session_s ngx_stream_session_t; // nginx 1.11.3新增变量支持 #include <ngx_stream_variables...
//套接字类型。types是SOCK_STREAM时,表示是tcp int type; //TCP实现监听时的backlog队列,它表示允许正在通过三次握手建立tcp连接但还没有任何进程开始处理的连接最大个数 int backlog; int rcvbuf;//套接字接收缓冲区大小 int sndbuf;//套接字发送缓冲区大小 ...
// 参考ngx_http_write_filter_module.c unsigned delayed:1; // 延迟接收请求,即只有客户端真正发来数据时内核才会触发accept // 可以提高运行效率 unsigned deferred_accept:1; /* the pending eof reported by kqueue, epoll or in aio chain operation */ ...
ngx_http_spdy_stream_t *spdy_stream; #endif ngx_http_log_handler_pt log_handler; //在这个请求中如果打开了某些资源,并需要在请求结束时释放,那么需要把定义的释放资源的方法添加到这个成员 ngx_http_cleanup_t *cleanup; unsigned subrequests:8; ...
data帧读取在ngx_http_read_client_request_body->ngx_http_v2_read_request_body*/if(r->stream && r == r->main) { r->request_body_no_buffering =0; rc=ngx_http_v2_read_request_body(r, post_handler);gotodone; }#endif/*检查请求ngx_http_request_t结构体中的request_body成员,如果它已经...