freebsd-ports/www/nginx-devel/files/extra-patch-ngx_http_udplog_module.c
Sergey A. Osokin 3b8ba27261 Update from 0.8.31 to 0.8.32.
<ChangeLog>

*) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module.
   Thanks to Maxim Dounin.

*) Bugfix: regular expression named captures worked for two names only.
   Thanks to Maxim Dounin.

*) Bugfix: now the "localhost" name is used in the "Host" request
   header line, if an unix domain socket is defined in the "auth_http"
   directive.
   Thanks to Maxim Dounin.

*) Bugfix: nginx did nor support chunked transfer encoding for 201
   responses.
   Thanks to Julian Reich.

*) Bugfix: if the "expires modified" set date in the past, the a
   negative number was set in the "Cache-Control" response header
   line.
   Thanks to Alex Kapranoff.

</ChangeLog>
2010-01-11 17:23:35 +00:00

23 lines
880 B
C

--- ../nginx_udplog_module-1.0.0/ngx_http_udplog_module.c.orig 2010-01-11 19:16:46.000000000 +0300
+++ ../nginx_udplog_module-1.0.0/ngx_http_udplog_module.c 2010-01-11 19:20:17.000000000 +0300
@@ -280,7 +280,7 @@
uc->sockaddr = endpoint->peer_addr.sockaddr;
uc->socklen = endpoint->peer_addr.socklen;
uc->server = endpoint->peer_addr.name;
-#if defined nginx_version && nginx_version >= 7054
+#if defined nginx_version && ( nginx_version >= 7054 && nginx_version < 8032 )
uc->log = &cf->cycle->new_log;
#else
uc->log = cf->cycle->new_log;
@@ -335,7 +335,11 @@
}
if ((size_t) n != (size_t) len) {
+#if defined nginx_version && nginx_version >= 8032
+ ngx_log_error(NGX_LOG_CRIT, &uc->log, 0, "send() incomplete");
+#else
ngx_log_error(NGX_LOG_CRIT, uc->log, 0, "send() incomplete");
+#endif
return NGX_ERROR;
}