[wp-hackers] When a ping is sent ?
Joseph Scott
joseph at randomnetworks.com
Mon Dec 19 18:19:19 GMT 2005
On Dec 17, 2005, at 11:07 AM, Andy Skelton wrote:
> On 12/17/05, David Chait <davebytes at comcast.net> wrote:
>> How exactly are you running it asynchronously? Obviously,
>> wouldn't ever
>> want an administrative function (pinging from a post) impacting a
>> >reader<,
>> when the time CAN be spent by the >writer<... if/when it's a
>> synchronous
>> event. :)
>
> Neither is impacted. In the new function spawn_pinger(), we use
> fsockopen to start a new thread via HTTP. AFAIK it's the only
> platform-independent way to do this without involving the user agent.
>
> If you are concerned that some hosts block fsockopen, don't worry:
> pings and trackbacks depend on the exact same function. If
> spawn_pinger() fails, execute-pings.php wouldn't have worked anyway.
I'm looking at spawn_pinger() (version 3321 of wp-includes/
functions.php) and I don't see how a simple call to fsockopen() are
enough to create a new thread. I couldn't find anything at php.net/
fsockopen about creating a new thread. I don't think that PHP
currently has any way to spawn new threads. Are you confusing fork
with thread?
Could you point out the code that makes the ping separate from the
rest of the process?
--
Joseph Scott
http://joseph.randomnetworks.com/
joseph at randomnetworks.com
More information about the wp-hackers
mailing list