comparison src/os/unix/ngx_channel.c @ 32:da8c190bdaba NGINX_0_1_16

nginx 0.1.16 *) 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 directive 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 arguments rewriting. *) Bugfix: the response code 400 was returned for the POST request with the "Content-Length: 0" header; bug appeared in 0.1.14.
author Igor Sysoev <http://sysoev.ru>
date Tue, 25 Jan 2005 00:00:00 +0300
parents e1ada20fc595
children b55cbf18157e
comparison
equal deleted inserted replaced
31:1b17dd824438 32:da8c190bdaba
36 cmsg.cm.cmsg_level = SOL_SOCKET; 36 cmsg.cm.cmsg_level = SOL_SOCKET;
37 cmsg.cm.cmsg_type = SCM_RIGHTS; 37 cmsg.cm.cmsg_type = SCM_RIGHTS;
38 *(int *) CMSG_DATA(&cmsg.cm) = ch->fd; 38 *(int *) CMSG_DATA(&cmsg.cm) = ch->fd;
39 } 39 }
40 40
41 msg.msg_flags = 0;
42
41 #else 43 #else
42 44
43 if (ch->fd == -1) { 45 if (ch->fd == -1) {
44 msg.msg_accrights = NULL; 46 msg.msg_accrights = NULL;
45 msg.msg_accrightslen = 0; 47 msg.msg_accrightslen = 0;
56 58
57 msg.msg_name = NULL; 59 msg.msg_name = NULL;
58 msg.msg_namelen = 0; 60 msg.msg_namelen = 0;
59 msg.msg_iov = iov; 61 msg.msg_iov = iov;
60 msg.msg_iovlen = 1; 62 msg.msg_iovlen = 1;
61 msg.msg_flags = 0;
62 63
63 n = sendmsg(s, &msg, 0); 64 n = sendmsg(s, &msg, 0);
64 65
65 if (n == -1) { 66 if (n == -1) {
66 err = ngx_errno; 67 err = ngx_errno;