Mercurial > hg > nginx-mail
view src/os/unix/ngx_errno.c @ 334:3f511163d908 NGINX_0_6_11
nginx 0.6.11
*) Bugfix: active connection counter always increased if mail proxy was
used.
*) Bugfix: if backend returned response header only using non-buffered
proxy, then nginx closed backend connection on timeout.
*) Bugfix: nginx did not support several "Connection" request header
lines.
*) Bugfix: if the "max_fails" was set for upstream server, then after
first failure server weight was always one; bug appeared in 0.6.6.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 11 Sep 2007 00:00:00 +0400 |
parents | 72eb30262aac |
children | 88d3e895bdf9 |
line wrap: on
line source
/* * Copyright (C) Igor Sysoev */ #include <ngx_config.h> #include <ngx_core.h> #if (NGX_HAVE_STRERROR_R) u_char *ngx_strerror_r(int err, u_char *errstr, size_t size) { if (size == 0) { return 0; } errstr[0] = '\0'; strerror_r(err, (char *) errstr, size); while (*errstr && size) { errstr++; size--; } return errstr; } #elif (NGX_HAVE_GNU_STRERROR_R) /* Linux strerror_r() */ u_char *ngx_strerror_r(int err, u_char *errstr, size_t size) { char *str; if (size == 0) { return 0; } errstr[0] = '\0'; str = strerror_r(err, (char *) errstr, size); if (str != (char *) errstr) { return ngx_cpystrn(errstr, (u_char *) str, size); } while (*errstr && size) { errstr++; size--; } return errstr; } #endif