#define _NGX_CONFIG_H_INCLUDED_
+/* STUB to allocate a big ngx_connections */
+#undef FD_SETSIZE
+#define FD_SETSIZE 5000
+
+
#if defined __FreeBSD__
#include <ngx_freebsd_config.h>
continue;
}
- if (rc == NGX_AGAIN) {
+ if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
+ ngx_http_finalize_request(r, rc);
return;
}
- if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
+ if (r->phase == NGX_HTTP_CONTENT_PHASE) {
ngx_http_finalize_request(r, rc);
return;
}
- if (rc == NGX_OK && r->phase == NGX_HTTP_CONTENT_PHASE) {
- ngx_http_finalize_request(r, 0);
+ if (rc == NGX_AGAIN) {
return;
}
static ngx_command_t ngx_http_write_filter_commands[] = {
{ ngx_string("buffer_output"),
- NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
ngx_conf_set_size_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_write_filter_conf_t, buffer_output),
#include <ngx_core.h>
+#if (HAVE_STRERROR_R)
+
ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size)
{
size_t len;
return len;
}
+
+#endif