comparison src/core/ngx_connection.h @ 665:0b460e61bdcd default tip

Merge with nginx 1.0.0.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:22:17 +0400
parents b9763778e212
children
comparison
equal deleted inserted replaced
572:06419a2298a9 665:0b460e61bdcd
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 {
127 #if (NGX_SSL) 130 #if (NGX_SSL)
128 ngx_ssl_connection_t *ssl; 131 ngx_ssl_connection_t *ssl;
129 #endif 132 #endif
130 133
131 struct sockaddr *local_sockaddr; 134 struct sockaddr *local_sockaddr;
132 socklen_t local_socklen;
133 135
134 ngx_buf_t *buffer; 136 ngx_buf_t *buffer;
137
138 ngx_queue_t queue;
135 139
136 ngx_atomic_uint_t number; 140 ngx_atomic_uint_t number;
137 141
138 ngx_uint_t requests; 142 ngx_uint_t requests;
139 143
146 unsigned timedout:1; 150 unsigned timedout:1;
147 unsigned error:1; 151 unsigned error:1;
148 unsigned destroyed:1; 152 unsigned destroyed:1;
149 153
150 unsigned idle:1; 154 unsigned idle:1;
155 unsigned reusable:1;
151 unsigned close:1; 156 unsigned close:1;
152 157
153 unsigned sendfile:1; 158 unsigned sendfile:1;
154 unsigned sndlowat:1; 159 unsigned sndlowat:1;
155 unsigned tcp_nodelay:2; /* ngx_connection_tcp_nodelay_e */ 160 unsigned tcp_nodelay:2; /* ngx_connection_tcp_nodelay_e */
182 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);
183 188
184 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);
185 void ngx_free_connection(ngx_connection_t *c); 190 void ngx_free_connection(ngx_connection_t *c);
186 191
192 void ngx_reusable_connection(ngx_connection_t *c, ngx_uint_t reusable);
187 193
188 #endif /* _NGX_CONNECTION_H_INCLUDED_ */ 194 #endif /* _NGX_CONNECTION_H_INCLUDED_ */