Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-30 Thread Stefan Fritsch
On Tuesday 29 March 2016 07:26:06, Jan Kaluža wrote: > > I am not against the freebind feature as such, it's useful for > > failover solutions/VRRP/etc. But I am strictly against advertising > > this as a workaround for broken systemd design. > > We do not advertise it publicly as a workaround for

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-28 Thread Jan Kaluža
On 03/28/2016 05:52 PM, Stefan Fritsch wrote: On Monday 07 March 2016 12:41:25, Jan Kaluža wrote: This is needed for httpd startup with systemd when one wants to use particular IP address to bind. There is no way how to start httpd after the IP address has been configured in systemd and accordin

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-28 Thread Stefan Fritsch
On Monday 07 March 2016 12:41:25, Jan Kaluža wrote: > This is needed for httpd startup with systemd when one wants to use > particular IP address to bind. There is no way how to start httpd > after the IP address has been configured in systemd and according > to systemd developers, the applications

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-24 Thread Yann Ylavic
On Fri, Mar 18, 2016 at 9:36 AM, Jan Kaluža wrote: > > I've implemented the way described in that question above ^. Please see the > attached patch and share your opinions. > > The syntax to enable IP_FREEBIND currently is: > > Listen 192.168.0.1:80 http freebind I think we should be able to conf

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-21 Thread Jim Jagielski
Thx. I'll take a deeper look post 2.4.19 (this week) > On Mar 18, 2016, at 4:36 AM, Jan Kaluža wrote: > > On 03/08/2016 11:43 AM, Jan Kaluža wrote: >> On 03/08/2016 10:25 AM, Yann Ylavic wrote: >>> On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-19 Thread Jan Kaluža
On 03/08/2016 11:43 AM, Jan Kaluža wrote: On 03/08/2016 10:25 AM, Yann Ylavic wrote: On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: I have chosen FreeListen over the flags FWIW, should be take the YAD path, I'd prefer ListenFree (over

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Jacob Champion
On 03/08/2016 10:47 AM, Tim Bannister wrote: >> On 8 Mar 2016, at 18:13, William A Rowe Jr wrote: >> If a websocket implementation is properly stacked on top of the >> core, there is no need for special-casing this interaction. It >> will be able to speak over http or https, or conceivably even o

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Tim Bannister
> On 8 Mar 2016, at 18:13, William A Rowe Jr wrote: >> >> On Tue, Mar 8, 2016 at 11:38 AM, Tim Bannister >> wrote: >> On 8 Mar 2016, at 10:43, Jan Kaluža wrote: >> > On 03/08/2016 10:25 AM, Yann Ylavic wrote: >> >> On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: >> >>> On Tue, Mar 8, 2016

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread William A Rowe Jr
On Tue, Mar 8, 2016 at 11:38 AM, Tim Bannister wrote: > On 8 Mar 2016, at 10:43, Jan Kaluža wrote: > > On 03/08/2016 10:25 AM, Yann Ylavic wrote: > >> On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic > wrote: > >>> On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: > > I have chosen FreeLi

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Tim Bannister
On 8 Mar 2016, at 10:43, Jan Kaluža wrote: > On 03/08/2016 10:25 AM, Yann Ylavic wrote: >> On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: >>> On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: I have chosen FreeListen over the flags >>> >>> FWIW, should be take the YAD path, I'd p

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Tim Bannister
On 8 Mar 2016, at 09:25, Yann Ylavic wrote: > On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: >> On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: >>> >>> I have chosen FreeListen over the flags >> >> FWIW, should be take the YAD path, I'd prefer ListenFree (over >> FreeListen) to emphasize

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Jan Kaluža
On 03/08/2016 10:25 AM, Yann Ylavic wrote: On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: I have chosen FreeListen over the flags FWIW, should be take the YAD path, I'd prefer ListenFree (over FreeListen) to emphasize on the "Listen dir

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Yann Ylavic
On Mon, Mar 7, 2016 at 12:41 PM, Jan Kaluža wrote: > > This is needed for httpd startup with systemd when one wants to use > particular IP address to bind. There is no way how to start httpd after the > IP address has been configured in systemd and according to systemd > developers, the applicatio

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Yann Ylavic
On Tue, Mar 8, 2016 at 9:46 AM, Yann Ylavic wrote: > On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: >> >> I have chosen FreeListen over the flags > > FWIW, should be take the YAD path, I'd prefer ListenFree (over > FreeListen) to emphasize on the "Listen directive family" with a > prefix... T

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Yann Ylavic
On Tue, Mar 8, 2016 at 9:28 AM, Jan Kaluža wrote: > > I have chosen FreeListen over the flags FWIW, should be take the YAD path, I'd prefer ListenFree (over FreeListen) to emphasize on the "Listen directive family" with a prefix... Regards, Yann.

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-08 Thread Jan Kaluža
On 03/08/2016 06:32 AM, William A Rowe Jr wrote: On Mar 7, 2016 21:59, "Yehuda Katz" mailto:yeh...@ymkatz.net>> wrote: > > On Mon, Mar 7, 2016 at 9:06 PM, William A Rowe Jr mailto:wr...@rowe-clan.net>> wrote: >> >> On Mar 7, 2016 13:54, "Jan Kaluža" mailto:jkal...@redhat.com>> wrote: >> > >

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread William A Rowe Jr
On Mar 7, 2016 21:59, "Yehuda Katz" wrote: > > On Mon, Mar 7, 2016 at 9:06 PM, William A Rowe Jr wrote: >> >> On Mar 7, 2016 13:54, "Jan Kaluža" wrote: >> > >> > On 03/07/2016 04:17 PM, Jim Jagielski wrote: >> >> >> >> Intstead of adding YAD (yet another directive ;) ), would it >> >> be possibl

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread Yehuda Katz
On Mon, Mar 7, 2016 at 9:06 PM, William A Rowe Jr wrote: > On Mar 7, 2016 13:54, "Jan Kaluža" wrote: > > > > On 03/07/2016 04:17 PM, Jim Jagielski wrote: > >> > >> Intstead of adding YAD (yet another directive ;) ), would it > >> be possible to somehow leverage Listen itself, maybe with some > >

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread William A Rowe Jr
On Mar 7, 2016 13:54, "Jan Kaluža" wrote: > > On 03/07/2016 04:17 PM, Jim Jagielski wrote: >> >> Intstead of adding YAD (yet another directive ;) ), would it >> be possible to somehow leverage Listen itself, maybe with some >> sort of flag? > > > Yes, that would be quite possible. I was thinking a

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread Jan Kaluža
On 03/07/2016 04:17 PM, Jim Jagielski wrote: Intstead of adding YAD (yet another directive ;) ), would it be possible to somehow leverage Listen itself, maybe with some sort of flag? Yes, that would be quite possible. I was thinking about that way, but I have chosen YAD as a first approach. If

Re: [PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread Jim Jagielski
Intstead of adding YAD (yet another directive ;) ), would it be possible to somehow leverage Listen itself, maybe with some sort of flag? > On Mar 7, 2016, at 6:41 AM, Jan Kaluža wrote: > > Hi, > > attached patch adds new "FreeListen" directive. The difference between > "Listen" and "FreeListe

[PATCH] Add "FreeListen" to support IP_FREEBIND

2016-03-07 Thread Jan Kaluža
Hi, attached patch adds new "FreeListen" directive. The difference between "Listen" and "FreeListen" is that "FreeListen" sets the IP_FREEBIND socket option on platforms where this is available. It is therefore possible to start the server even when particular IP address set in the "FreeList