Re: HttpProducer to ignore response body avoiding stream caching

2015-06-15 Thread Marco Crivellaro
Should I take care of opening a JIRA issue to request the feature? Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260p5768274.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: HttpProducer to ignore response body avoiding stream caching

2015-06-15 Thread Andrea Cosentino
Hi, yes, if you want, or I can open a JIRA issue for you. You can also submit a 
patch or a PR to resolve the issue :-)
Bye

Andrea Cosentino

--

Apache Camel Committer
Email: ancosen1...@yahoo.com
Twitter: @oscerd2
Github: oscerd 


 On Monday, June 15, 2015 4:09 PM, Marco Crivellaro marco.cr...@gmail.com 
wrote:
   

 Should I take care of opening a JIRA issue to request the feature? Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260p5768274.html
Sent from the Camel - Users mailing list archive at Nabble.com.


   

Re: HttpProducer to ignore response body avoiding stream caching

2015-06-15 Thread Claus Ibsen
Hi

Yeah sure a JIRA is welcome. Though we should take care to not always
add new functionality from a single request in the community to avoid
bloat the components with a zillion options.



On Mon, Jun 15, 2015 at 4:08 PM, Marco Crivellaro marco.cr...@gmail.com wrote:
 Should I take care of opening a JIRA issue to request the feature? Thanks



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260p5768274.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: HttpProducer to ignore response body avoiding stream caching

2015-06-15 Thread Willem Jiang
I just create a JIRA[1] for it.

[1]https://issues.apache.org/jira/browse/CAMEL-8876


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On June 16, 2015 at 12:04:07 AM, Claus Ibsen (claus.ib...@gmail.com) wrote:
 Hi
  
 Yeah sure a JIRA is welcome. Though we should take care to not always
 add new functionality from a single request in the community to avoid
 bloat the components with a zillion options.
  
  
  
 On Mon, Jun 15, 2015 at 4:08 PM, Marco Crivellaro wrote:
  Should I take care of opening a JIRA issue to request the feature? Thanks
 
 
 
  --
  View this message in context: 
  http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260p5768274.html

  Sent from the Camel - Users mailing list archive at Nabble.com.
  
  
  
 --
 Claus Ibsen
 -
 Red Hat, Inc.
 Email: cib...@redhat.com
 Twitter: davsclaus
 Blog: http://davsclaus.com
 Author of Camel in Action: http://www.manning.com/ibsen
 hawtio: http://hawt.io/
 fabric8: http://fabric8.io/
  



Re: HttpProducer to ignore response body avoiding stream caching

2015-05-22 Thread Marco Crivellaro
yes that's exactly what I'd need. Should I open a JIRA issue?

Best,
Marco



--
View this message in context: 
http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260p5767416.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: HttpProducer to ignore response body avoiding stream caching

2015-05-19 Thread Willem Jiang
So you just need to check the statuses code and don’t need to read the message 
body.
Yeah, we can add an option for it to avoid recopying the input stream from the 
HttpClient.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 19, 2015 at 11:31:33 PM, Marco Crivellaro (marco.cr...@gmail.com) wrote:
 I am using camel-http to send HTTP Post notifications to a wide range of
 endpoints which I don't control directly, sometimes the endpoints response
 is quite big and due to the fact HttpProducer is caching the response stream
 temporary files are being written to disk.
  
 I can set the caching threshold to a higher value and therefore avoid
 writing to disk but this would have an impact on HEAP consumption.
 It would be great if the response body can optionally be ignored (maybe only
 for 200:300 statuses), I am not doing anything with the endpoint response
 body if the status is 200.
  
 Maybe such option will be helpful for other camel riders?
  
  
  
 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260.html
   
 Sent from the Camel - Users mailing list archive at Nabble.com.
  



HttpProducer to ignore response body avoiding stream caching

2015-05-19 Thread Marco Crivellaro
I am using camel-http to send HTTP Post notifications to a wide range of
endpoints which I don't control directly, sometimes the endpoints response
is quite big and due to the fact HttpProducer is caching the response stream
temporary files are being written to disk.

I can set the caching threshold to a higher value and therefore avoid
writing to disk but this would have an impact on HEAP consumption.
It would be great if the response body can optionally be ignored (maybe only
for 200:300 statuses), I am not doing anything with the endpoint response
body if the status is 200.

Maybe such option will be helpful for other camel riders?



--
View this message in context: 
http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260.html
Sent from the Camel - Users mailing list archive at Nabble.com.