Hi Rostisla,

I've committed another patch into HEAD and PHP_5_1, that allows usage of
UNIX sockets without ':'.

-b <host>:<port_number>
-b <port_number>
-b <unix_path>

Thanks. Dmitry.

> -----Original Message-----
> From: Rostislav Krasny [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 20, 2006 10:42 PM
> To: internals@lists.php.net; "Dmitry Stogov"
> Subject: Re: [PHP-DEV] FastCGI unix sockets support patch
> 
> 
> On Mon, 20 Mar 2006 13:44:30 +0300
> [EMAIL PROTECTED] ("Dmitry Stogov") wrote:
> 
> > Hi Rostislav,
> > 
> > PHP HEAD and PHP_5_1 (5.1.3) don't use libfcgi any more.
> > They use simplest and smallest replacement library.
> > 
> > Please look into CVS code and provide a patch for it (if necessary).
> > 
> > Thanks. Dmitry.
> 
> Hello Dmitry,
> 
> I've tried the latest php5.1-200603200930 snapshot. It has 
> the same problem. During fixing it in sapi/cgi/fastcgi.c I 
> reworked an fcgi_listen() function. The new version of this 
> function only is attached to this message instead of a patch 
> that may be less handy in this case. There are two additional 
> things in the function that could still be improved:
> 
> 1. use gethostbyname2(host, AF_INET) instead of gethostbyname(host)
>    it will eliminate IPv6 addresses from resolving
> 2. use 0770 socket mode instead of 0777
>    it will make the UNIX socket more secure
> 
> What do you think about that new code?
> 


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to