Many thanks to Simeon Bateman and Sean Corfield for helping me solve
this :)

The problem was that I was requesting the other page from within a
<cftransaction> tag, and the isolation level was such that the page it
was requesting was blocked from hitting the table it needed until the
backend's transaction was complete, which wouldn't happen until cfhttp
was done.

I had cf commit the transaction before making the http request, and all
is well now.

/kam

-----Original Message-----
From: Figy, Kam 
Sent: Monday, November 07, 2005 2:55 PM
To: '[email protected]'
Subject: cfhttp weirdness

I've got two cf apps, which need to exchange messages over a loosely
coupled connection. I've been using a cfc on the receiving end that I've
been sending plain old http GET requests using cfhttp.

Today I added a new message that can get sent, and started getting HTTP
408 request timeouts when I sent the cfhttp request off. All the other
methods get called fine, just this one doesn't. Web browsers can request
the exact same URL with no issue, but cfhttp (with timeout 10s), opening
it as a web service, and a java.net.URLConnection all just time out or
hang indefinitely.

I've managed to track it down to one thing: This method is the only one
that invokes a cfquery. Commenting out the query causes the timeout
error to disappear. Can anyone think of why running a query would cause
such issues with cfhttp? The page seems to run despite the request
timeout, because a file that gets written after the query gets written
even when I get the error back.

I'm using apache2 + CF7.0.1 + CHF1.

Kam


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to