From 49563fd489247d9c67d63c24da9b94bdf73679a2 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 25 Jan 2005 12:25:58 +0000 Subject: Changes with nginx 0.1.16 25 Jan 2005 *) Bugfix: if the response were transferred by chunks, then on the HEAD request the final chunk was issued. *) Bugfix: the "Connection: keep-alive" header were issued, even if the keepalive_timeout derective forbade the keep-alive use. *) Bugfix: the errors in the ngx_http_fastcgi_module caused the segmentation faults. *) Bugfix: the compressed response encrypted by SSL may not transferred complete. *) Bugfix: the TCP-specific TCP_NODELAY, TCP_NOPSUH, and TCP_CORK options, are not used for the unix domain sockets. *) Feature: the rewrite directive supports the agruments rewriting. *) Bugfix: the response code 400 was returend for the POST request with the "Content-Length: 0" header; bug appeared in 0.1.14. --- src/os/unix/ngx_channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/os/unix/ngx_channel.c') diff --git a/src/os/unix/ngx_channel.c b/src/os/unix/ngx_channel.c index 1fd5cb46b..853c5d6fd 100644 --- a/src/os/unix/ngx_channel.c +++ b/src/os/unix/ngx_channel.c @@ -38,6 +38,8 @@ ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, *(int *) CMSG_DATA(&cmsg.cm) = ch->fd; } + msg.msg_flags = 0; + #else if (ch->fd == -1) { @@ -58,7 +60,6 @@ ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, msg.msg_namelen = 0; msg.msg_iov = iov; msg.msg_iovlen = 1; - msg.msg_flags = 0; n = sendmsg(s, &msg, 0); -- cgit v1.2.1