Hi All.
I was wondering whether or not is is neccessary to lock CFHTTP
calls. I was searching the archives, and have seen claims to
both sides of the argument. If it makes any difference, the
application will be running on 4.5.1SP2. (If it further makes
a difference, it is going to be a call to the NWS weather site
(so all static HTML in the cfhttpd page) like in the depressed
press NWS weather tag.) I have seen that a lot of people
switch to a CFOBJECT solution to call an "asphttp" command,
and would like to avoid that if possible - the cfhttp call
won't be happening very often (it will be on a schedule to
happen every hour or so) so I don't think load on cfhttp will
be a problem.
Here are some examples of conflicting responses from the CF-Talk
archives:
---
> From: Zachary Bedell
> Date: Thu, 03 Aug 2000 08:45:56 -0700
> Subject: RE: More CFLOCK
>
> <snip>
> You need an exclusive lock on CFX, CFFILE, and CFHTTP calls.
----
> From: Greg Saunders
> Date: Thu, 25 May 2000 08:14:10 -0700
> Subject: Re: All CFLOCK questions answered! (hopefully)
>
> <snip>
> That didn't quite answer all my questions, so I asked the
> "one guy on Earth who should know", Simeon Simeonov.
> (Dave, thanks for the pointer.) He says:
> <snip>
> * You do not need to lock CFHTTP, CFFTP, etc. "If they
> don't use shared data, don't lock them." I (Greg) have
> seen some people complain about a limit on the number of
> CFHTTP requests that CF could handle, and when I mentioned
> this to Simeon, and he responded "This seems to have been a
> suggestion to work around a bug in the product. The CFHTTP
> code in 4.5 is new and should not cause any problems. One
> caveat, though. I'm not fully synched with the tech support
> & bug queues."
---
TIA,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists