Coldfusion blog - by phil porter
   

fearlessFusion.com is my Blog and Online portfolio; I am currently the Director of Visualweb Ltd. Read More


BlogCFC ping list and timeouts

Having decided to promote my blog as much as possible, I decided one of the best ways was to ping as many blog servers as possible.

Blogcfc has (in its settings option in the admin) an option to list ping urls. When you submit a new entry to your blog, these servers are contacted automatically telling them you have a new entry.

So, on searching google for a good list of addresses to ping I came across: 56 RPC and RPC2 Services to Ping . I have included the list in the download link incase it disappears.

Problems can arise in blogcfc with so many urls being submitted. If you're running blogcfc under coldfusion 8 you should be okay, as Ray coded the ping function to use threads. However if your not on Coldfusion 8 then you'll need to add a timeout setting in "ping7.cfc" (which can be found in "/org/camden/blog". This is because the cfloop may timeout.

Add the following line just above the cfloop:

<cfsetting requesttimeout="9999999">

Don't forget to re-init you blog before you post, so that the new line is initalised.



Comments
todd sharp's Gravatar
# Posted By todd sharp | 01/02/08 10:40

If you're adventurous you could try setting a timeout of 1 on the cfhttp call that does the ping. In theory the request should complete and since you do not need to do anything with the response the loop will just continue on to the next ping (kind of like a poor mans cfthread if you will).

 


Phil's Gravatar
# Posted By Phil | 01/02/08 11:51

Thanks Todd - Its always worth setting a good timeout value for cfhttp (that overrides the default one set in cf admin). In conjunction with the cfsetting (for the page timeout), this should help with a huge list of ping urls.

 


Will Wilson's Gravatar
# Posted By Will Wilson | 04/04/08 17:15

Nice :) that will come in handy, thanks!

 



Sponsored Links

 

 




Calendar

« May 2008 »
M T W T F S S
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  


Recent Comments

Multiple SQL inserts: Oracle, Mysql, Mssql

JAYESH TALSANIYA said: in mssql u cannot use parentheses in select statement. use as below: INSERT INTO [TABLE] (column1,... [More]

Multiple SQL inserts: Oracle, Mysql, Mssql

JD said: I found with MSSQL, I couldn't use parentheses in my select statements for insert. So, from your ex... [More]

BlogCFC ping list and timeouts

Will Wilson said: Nice :) that will come in handy, thanks! [More]

Is this a Coldfusion 8 BUG

Barb said: I'm having the same problem . . . when I start CF8, it seems to hang during or just after the user M... [More]

Is this a Coldfusion 8 BUG

João Fernandes said: Phil, when you install CF8 they give you an option to install LCDS within CF. The messageBrokerServl... [More]





W3C Design Gallery

Richard Deverell, illustrator Illustrations & Web Design
CROSSING TV CSSaddict
Charlotte Cann Interiors Rastercafe