comparison src/core/ngx_connection.h @ 635:e67b227c8dbb default tip

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:07:55 +0400
parents b9763778e212
children
comparison
equal deleted inserted replaced
578:f3a9e57d2e17 635:e67b227c8dbb
67 unsigned add_deferred:1; 67 unsigned add_deferred:1;
68 #ifdef SO_ACCEPTFILTER 68 #ifdef SO_ACCEPTFILTER
69 char *accept_filter; 69 char *accept_filter;
70 #endif 70 #endif
71 #endif 71 #endif
72 #if (NGX_HAVE_SETFIB)
73 int setfib;
74 #endif
72 75
73 }; 76 };
74 77
75 78
76 typedef enum { 79 typedef enum {
130 133
131 struct sockaddr *local_sockaddr; 134 struct sockaddr *local_sockaddr;
132 135
133 ngx_buf_t *buffer; 136 ngx_buf_t *buffer;
134 137
138 ngx_queue_t queue;
139
135 ngx_atomic_uint_t number; 140 ngx_atomic_uint_t number;
136 141
137 ngx_uint_t requests; 142 ngx_uint_t requests;
138 143
139 unsigned buffered:8; 144 unsigned buffered:8;
145 unsigned timedout:1; 150 unsigned timedout:1;
146 unsigned error:1; 151 unsigned error:1;
147 unsigned destroyed:1; 152 unsigned destroyed:1;
148 153
149 unsigned idle:1; 154 unsigned idle:1;
155 unsigned reusable:1;
150 unsigned close:1; 156 unsigned close:1;
151 157
152 unsigned sendfile:1; 158 unsigned sendfile:1;
153 unsigned sndlowat:1; 159 unsigned sndlowat:1;
154 unsigned tcp_nodelay:2; /* ngx_connection_tcp_nodelay_e */ 160 unsigned tcp_nodelay:2; /* ngx_connection_tcp_nodelay_e */
181 ngx_int_t ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text); 187 ngx_int_t ngx_connection_error(ngx_connection_t *c, ngx_err_t err, char *text);
182 188
183 ngx_connection_t *ngx_get_connection(ngx_socket_t s, ngx_log_t *log); 189 ngx_connection_t *ngx_get_connection(ngx_socket_t s, ngx_log_t *log);
184 void ngx_free_connection(ngx_connection_t *c); 190 void ngx_free_connection(ngx_connection_t *c);
185 191
192 void ngx_reusable_connection(ngx_connection_t *c, ngx_uint_t reusable);
186 193
187 #endif /* _NGX_CONNECTION_H_INCLUDED_ */ 194 #endif /* _NGX_CONNECTION_H_INCLUDED_ */