Welcome! Log In Create A New Profile

Advanced

Re: Problem upgrading on the fly when ipv6 is used

Usu
May 31, 2010 03:57AM
Hello,

thanks for the help, I tried patching the 0.8.38 release but it's giving me an error:

root@localhost:/usr/src/nginx-0.8.38# patch -p1 < ipv6.diff
patching file src/core/ngx_connection.c
Hunk #1 FAILED at 96.
1 out of 1 hunk FAILED -- saving rejects to file src/core/ngx_connection.c.rej

And here's the file generated:

[code]
*************** ngx_set_inherited_sockets(ngx_cycle_t *c
*** 96,109 ****
ls = cycle->listening.elts;
for (i = 0; i < cycle->listening.nelts; i++) {

- /* AF_INET only */
-
- ls.sockaddr = ngx_palloc(cycle->pool, sizeof(struct sockaddr_in));
if (ls.sockaddr == NULL) {
return NGX_ERROR;
}

- ls.socklen = sizeof(struct sockaddr_in);
if (getsockname(ls.fd, ls.sockaddr, &ls.socklen) == -1) {
ngx_log_error(NGX_LOG_CRIT, cycle->log, ngx_socket_errno,
"getsockname() of the inherited "
--- 96,107 ----
ls = cycle->listening.elts;
for (i = 0; i < cycle->listening.nelts; i++) {

+ ls.sockaddr = ngx_palloc(cycle->pool, NGX_SOCKADDRLEN);
if (ls.sockaddr == NULL) {
return NGX_ERROR;
}

+ ls.socklen = NGX_SOCKADDRLEN;
if (getsockname(ls.fd, ls.sockaddr, &ls.socklen) == -1) {
ngx_log_error(NGX_LOG_CRIT, cycle->log, ngx_socket_errno,
"getsockname() of the inherited "
[/code]

Am I doing something wrong?

Thanks,
Andrea
Subject Author Posted

Problem upgrading on the fly when ipv6 is used

Usu May 29, 2010 03:23AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 30, 2010 07:40PM

Re: Problem upgrading on the fly when ipv6 is used

Usu May 31, 2010 03:57AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 31, 2010 04:20AM

Re: Problem upgrading on the fly when ipv6 is used

Usu May 31, 2010 07:53AM

Re: Problem upgrading on the fly when ipv6 is used

Maxim Dounin May 31, 2010 09:16AM

Re: Problem upgrading on the fly when ipv6 is used

Igor Sysoev May 31, 2010 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready