Re: FastCGI unix sockets support patch

From: Date: Thu, 23 Mar 2006 23:53:31 +0000
Subject: Re: FastCGI unix sockets support patch
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-22567@lists.php.net to get a copy of this message
I'll give this a test when 5.1.3RC2 comes out (later today?). I want to do a little testing before launch as this sapi is critical for php to function (for me). -steve-- On 3/23/06, Dmitry Stogov <dmitry@zend.com> wrote: > 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:rosti.bsd@gmail.com] > > 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 > > dmitry@zend.com ("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 > >

« previous php.internals (#22567) next »