CFHTTP returning 408 status code

235 views
Skip to first unread message

Jean Moniatte

unread,
May 3, 2013, 3:17:47 AM5/3/13
to Railo Google Group
Hello,

we have an internal webservice that we consume with cfhttp. 80% of the requests work fine, 20% come back with a 408 status code.

From what I understand of 408 status code, it means that the client did not produce the request fast enough after the initial connection was opened.

Increasing the value of the timeout attribute of cfhttp does not change anything, we still receive those 408s (just after a longer time).

Has anybody experienced similar issues before? Do they indicate a network related issue? The target web service runs on Tomcat, is there a way to increase Tomcat's timeout before it returns a 408?

Thanks,
Jean
--
Jean Moniatte
UGAL

Jean Moniatte

unread,
May 3, 2013, 5:04:23 AM5/3/13
to Railo Google Group
Fonting the Tomcat web service with Apache httpd fixes the issue. I guess there is an issue on our Network that httpd can handle but not Tomcat's web server. Not sure.

Thanks,
Jean
--
Jean Moniatte
UGAL

Jean Moniatte

unread,
May 24, 2013, 9:18:04 AM5/24/13
to Railo Google Group
Thought I would follow up as we kept encountering the issue, even after fronting the Tomcat server with Apache (and unlike I said it fixed the issue).

Switching from CFHTTP to Apache.commons.httpclient has now fixed the issue. 

It looks like there is something not quite right with CFHTTP in Railo 4 (see RAILO-2400 as well).

Anybody else encounters strange CFHTTP problems since switching to Railo 4?

Thanks,
Jean
--
Jean Moniatte
UGAL

JeremyBruck

unread,
Jun 6, 2013, 12:55:18 PM6/6/13
to ra...@googlegroups.com
Hey Jean,

We are also having cfHTTP issues with API's after changing to V4.  Our servers send member emails through mailgun (200k-300k/month) and since we upgraded all of our API calls through cfhttp are broken with virtually little error information outside of "Unknown host: null" -- thankfully 90% of our emails run through smtp and that is working no problem but disappointed we are having to hack the heck out of their API since cfhttp isn't working anymore.

Regards,
Jeremy

Jean Moniatte

unread,
Jun 6, 2013, 3:00:38 PM6/6/13
to Railo Google Group
Thanks Jeremy, I was wondering why so few people reported having this problem (cfhttp is probably used a lot).

Really, there is something not right with CFHTTP in Railo 4 and not being able to "trust" it anymore is a pain.

To the Railo team: what can we do to help debug this issue?

Thanks,
Jean
--
Jean Moniatte
UGAL

--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
 
 
If you don't have time, add a request to the Railo Server wiki to-do page at https://github.com/getrailo/railo/wiki/Todo
---
You received this message because you are subscribed to the Google Groups "Railo" group.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Igal @ getRailo.org

unread,
Jun 6, 2013, 6:28:59 PM6/6/13
to ra...@googlegroups.com
To the Railo team: what can we do to help debug this issue?
if you can produce a reduced testcase that shows the issue we can look into it.


Igal
-- 
Igal Sapir
Railo Core Developer
http://getRailo.org/

Jean Moniatte

unread,
Jun 6, 2013, 6:43:32 PM6/6/13
to Railo Google Group
Yes, I did 3 week ago: https://issues.jboss.org/browse/RAILO-2400

The .cfm file attached to the issue (https://issues.jboss.org/secure/attachment/12362605/RAILO-2400.cfm) compares 2 posts to a .php server: one post with cfhttp and one post with Apache httpclient. As soon as a file is attached to the post, .php does not receive any of the posted info when using cfhttp.

Thanks,
Jean
--
Jean Moniatte
UGAL

Reply all
Reply to author
Forward
0 new messages