comparison src/event/ngx_event.h @ 7393:4698cede59ff

Stream: proxy_requests directive. The directive allows to drop binding between a client and existing UDP stream session after receiving a specified number of packets. First packet from the same client address and port will start a new session. Old session continues to exist and will terminate at moment defined by configuration: either after receiving the expected number of responses, or after timeout, as specified by the "proxy_responses" and/or "proxy_timeout" directives. By default, proxy_requests is zero (disabled).
author Vladimir Homutov <vl@nginx.com>
date Mon, 12 Nov 2018 16:29:30 +0300
parents 874d47ac871a
children efd71d49bde0
comparison
equal deleted inserted replaced
7392:04ff25798002 7393:4698cede59ff
507 #if !(NGX_WIN32) 507 #if !(NGX_WIN32)
508 void ngx_event_recvmsg(ngx_event_t *ev); 508 void ngx_event_recvmsg(ngx_event_t *ev);
509 void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp, 509 void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp,
510 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel); 510 ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
511 #endif 511 #endif
512 void ngx_delete_udp_connection(void *data);
512 ngx_int_t ngx_trylock_accept_mutex(ngx_cycle_t *cycle); 513 ngx_int_t ngx_trylock_accept_mutex(ngx_cycle_t *cycle);
513 ngx_int_t ngx_enable_accept_events(ngx_cycle_t *cycle); 514 ngx_int_t ngx_enable_accept_events(ngx_cycle_t *cycle);
514 u_char *ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len); 515 u_char *ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len);
515 #if (NGX_DEBUG) 516 #if (NGX_DEBUG)
516 void ngx_debug_accepted_connection(ngx_event_conf_t *ecf, ngx_connection_t *c); 517 void ngx_debug_accepted_connection(ngx_event_conf_t *ecf, ngx_connection_t *c);