That or file uploads typically aren't real high-load operations (at least not in my experience), so people haven't been bitten by the lack of thread safety. We're rebuilding a document management system right now in CFCs, and a part of that is file uploads. This thread could not have been more timely. We hadn't had any problems with CFC-based file uploads in the "hash-it-out" phase, but we haven't load tested yet, assuming (wrongly) that proper scoping will handle thread concurrency. Would have been a ibtch to get a couple months in (including planning and initial development) and then realize we need to rearchitect because we can't do uploads in CFCs.
Someone (perhaps Ray as well) offered the suggestion of a returnVariable attribute to tag that generate one of these quasi-scopes. Not sure that'll quite work (be confusing with the 'variable' attribute in CFFILE, for example), but if a better name is picked, that's a great solution. Cheers, barneyb > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean A Corfield > Sent: Friday, February 13, 2004 9:01 AM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] How should I define variable in a CFC? > > On Feb 13, 2004, at 7:30 AM, Dawson, Michael wrote: > > Yeah, that's what I would hope for. Break the bad code in favor of > > writing new, working code. > > Seems to me that a lot of people complained when CFMX came out and it > broke some 'bad' CF5 code... Breaking backward compatibility is a big > deal for a lot of people, even when the change appears small. > > I think Ray's suggestion about adding these variables into the > 'queryname' object is a good one - but it wouldn't solve the problem > for cfhttp or cffile. > > Since folks don't seem to be tripping over the lack of thread > safety in > these tags right now, I think it's reasonable to assume most folks > aren't doing this stuff inside CFCs that live in shared scopes (or > aren't doing it under heavy load, at least). Changing the 'tag scope' > to be truly local shouldn't break code (although it is of course > *possible* that it would - if someone is relying on the thread-unsafe > nature of today's behavior). > > Sean A Corfield -- http://www.corfield.org/blog/ > > "I have always wished that my computer would be as easy to use as my > telephone. My wish has come true - I no longer know how to use my > telephone." > -- Bjarne Stroustrup > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
