[2nd try] PHP client question: why socket_create()?

Justin Matlock jmat@shutdown.net
Wed, 8 Oct 2003 13:46:57 -0400


Wow.. okay.   I like your API much more than the old one I've been hacking
on.     *worship*    :-)

But.... It's crashing my apache process threads at an alarming rate (maybe
10-15 per minute)...  it's probably the same funky bug in PHP that I was
seeing with my client.  The latest PHP CVS works great, though, and I don't
see any crashes.

I'm seeing some increases in speed due to the persistant connections.  I had
to do some tweaking to my apache processes to make sure they didn't overload
my memcached servers, though -- for some weird reason, PHP is leaving *some*
sockets open, when it should be closing them at the end of each script.  I
can't figure out a pattern to this yet, but I haven't looked at it too long.

As always, results may vary; it may be working flawlessly for someone else.
Afterall, I'm using a very tweaked out configuration...

'./configure' '--with-apxs2=/opt/httpd/bin/apxs' '--prefix=/opt/zend'
'--with-msession' '--enable-trans-sid' '--enable-memory-limit'
'--enable-inline-optimization' '--enable-wddx' '--with-gd'
'--with-openssl=/opt' '--with-zlib=/opt' '--enable-bcmath'
'--enable-calendar' '--enable-ctype' '--enable-exif' '--with-ttf'
'--with-ldap' '--with-ming=/opt' '--enable-sysvsem' '--enable-sysvshm'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr'
'--with-freetype-dir=/opt' '--with-zip=/opt' '--with-mcrypt=/opt'
'--with-mhash=/opt' '--enable-gd-native-ttf' '--with-mysql=/usr'
'--enable-ftp' '--with-pspell=/opt' '--enable-sockets' '--enable-tokenizer'
'--with-config-file-path=/opt/httpd/conf' '--with-curl=/opt' '--enable-cli'
'--with-imap=../imap-2002.RC7' '--with-gettext' '--with-dom=/opt'
'--with-bz2' '--with-imagick=/opt' '--with-mime-magic' '--with-snmp=/opt'
'--with-ucd-snmp-hack' '--enable-stem' '--enable-pcntl' '--enable-posix'

with apache 2.0.47

'--prefix=/opt/httpd' '--enable-auth-digest' '--enable-deflate'
'--enable-logio' '--enable-mime-magic' '--enable-cern-meta'
'--enable-expires' '--enable-headers' '--enable-unique-id' '--enable-ssl'
'--enable-info' '--enable-speling' '--enable-rewrite' '--enable-so'
'--enable-vhost-alias'  '--with-mpm=prefork

along with turck mmcache 2.3.23 (replaces Zend Accel.), on top of Zend
Optimizer v2.1.0, and finally with mod_perl.  (whee!)



----- Original Message ----- 
From: "Ryan T. Dean" <rtdean-lists-memcache@cytherianage.net>
To: <memcached@lists.danga.com>
Sent: Monday, October 06, 2003 4:46 PM
Subject: Re: [2nd try] PHP client question: why socket_create()?