Re: Net_Socket -> 1.0.3 ?

From: Date: Sat, 08 May 2004 19:47:52 +0000
Subject: Re: Net_Socket -> 1.0.3 ?
References: 1 2 3 4 5 6 7  Groups: php.pear.dev php.pear.dev 
Request: Send a blank email to pear-dev+get-29039@lists.php.net to get a copy of this message
Sean Coates wrote:
Chuck Hagenbuch wrote:
Thing is, it's not such a minor thing; for low-level socket handling and apps that use a lot of sockets, cutting the object size in half (at least?) is a big win.
I agree -- this is a major thing, not only because the object size is smaller, now, but using a lot of sockets used to not work AT ALL, consider this:
[...] With a few changes it will probably run until apache crashes :) $sock = & new Net_Socket(); for ($n=0; $n<=66000; $n++) { $sock->connect($addr, $port); $sock->write($data); if ($n % 1000 == 0) { echo "$n requests\n";ob_flush(); } $sock->disconnect(); } echo "$n\n"; Regards, Mike

« previous php.pear.dev (#29039) next »