Welcome! Log In Create A New Profile

Advanced

RE: [Patch] Make resolver port configurable

Sirsiwal, Umesh
February 14, 2011 04:28PM
Thanks Maxim,
I must say I am new to Nginx. My apologies for not following existing style. I will rework the patch following existing style.

I did look at ngx_parse_url. But that accepts a lot more things which are not directly applicable to resolver configuration (e.g. "/", args, etc.). If I just use ngx_parse_url, the function will try to parse input as normal URL.

Also it looks like at present nginx only accepts IPv4 addresses. The ngx_parse_url will accept V6 addresses as well. How do you suggest I use the ngx_parse_url()?

-Umesh


> -----Original Message-----
> From: Maxim Dounin [mailto:mdounin@mdounin.ru]
> Sent: Monday, February 14, 2011 4:15 PM
> To: nginx-devel@nginx.org
> Subject: Re: [Patch] Make resolver port configurable
>
> Hello!
>
> On Mon, Feb 14, 2011 at 03:53:47PM -0500, Sirsiwal, Umesh wrote:
>
> > Thanks for the feedback. Here is update patch. This does not
> > need a second parameter. Just allows host:port based
> > configuration.
>
> Just my 2 cents:
>
> 1. You may want to follow style to make all of us happy.
>
> 2. Using ngx_parse_url() instead of reinventing the wheel is a
> good idea.
>
> Maxim Dounin
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[Patch] Make resolver port configurable

Sirsiwal, Umesh 2278 February 10, 2011 10:20PM

Re: [Patch] Make resolver port configurable

Igor Sysoev 894 February 11, 2011 02:50AM

RE: [Patch] Make resolver port configurable

Sirsiwal, Umesh 746 February 14, 2011 03:56PM

Re: [Patch] Make resolver port configurable

Maxim Dounin 701 February 14, 2011 04:16PM

RE: [Patch] Make resolver port configurable

Sirsiwal, Umesh 1047 February 14, 2011 04:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 288
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready