Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-18 Thread Sergey Beryozkin
Regards, Andrei. -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Freitag, 15. April 2016 11:28 To: users@cxf.apache.org Subject: Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive Hi Looks like I got confused. it is all about Keep Alive while I somehow got

RE: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-17 Thread Andrei Shakirin
yoz...@gmail.com] > Sent: Freitag, 15. April 2016 11:28 > To: users@cxf.apache.org > Subject: Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive > > Hi > > Looks like I got confused. it is all about Keep Alive while I somehow got > assumed that it was about not timing

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-15 Thread Sergey Beryozkin
Hi Looks like I got confused. it is all about Keep Alive while I somehow got assumed that it was about not timing out (though, checking the thread I see I was not confused at the start of it :-)). I don't know why AsyncConduit is not reacting as expected in this case. This needs to be investi

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-14 Thread Viral Gohel
Hi Sergey, About the issue marked as 'Not a problem', https://issues.apache.org/jira/browse/CXF-6846 , this is the original test case that i checked with, /** * @author Viral Gohel * */ public class TestAsyncTTL extends Assert { priva

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-14 Thread Sergey Beryozkin
Hi To be honest I'm not sure about this property either, but if setting a receiveTimeout (which is consistent across all the conduits) works then why not do it ? Sergey On 14/04/16 17:44, chandra shekhar wrote: Hi Sergey, Thanks, yes no doubt setReceiveTimeout(1000L) works. I am keen a

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-14 Thread chandra shekhar
Hi Sergey, Thanks, yes no doubt setReceiveTimeout(1000L) works. I am keen about TTL: b.setProperty(AsyncHTTPConduitFactory.CONNECTION_TTL, "5"); How does this behave ? and when it should be used. The receiveTimeout property itself name describes if response is not there within time d

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-14 Thread Sergey Beryozkin
I've updated the JAXRS test, JAXRSAsyncClientTest: @Test public void testPatchBook() throws Exception { String address = "http://localhost:"; + PORT + "/bookstore/patch"; WebClient wc = WebClient.create(address); wc.type("application/xml"); WebClient.getConfig(wc).get

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-12 Thread Sergey Beryozkin
Hi I've only opened an issue to make sure this issue is being tracked https://issues.apache.org/jira/browse/CXF-6846 Cheers, Sergey On 12/04/16 13:50, chandra shekhar wrote: Hi Sergey, Sorry to bother you. Did you find something ? Regards, Chandra Shekhar -- View this message in context:

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-12 Thread chandra shekhar
Hi Sergey, Sorry to bother you. Did you find something ? Regards, Chandra Shekhar -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747402p5767808.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-23 Thread chandra shekhar
Thanks Sergey for prompt response. I am testing with https://github.com/apache/cxf/blob/master/rt/transports/http-hc/src/test/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitTest.java. I set following in already existing start method. #alreadythere in testcase Bus b = createStaticB

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-23 Thread Sergey Beryozkin
Well, I suppose you set as per the documentation. I'm not sure why it has no effect with HttpAsyncClient, I'll experiment a bit later Sergey -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747402p5767151.html Sent from the cxf-

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-23 Thread Sergey Beryozkin
Hi How do you set it ? Cheers, Sergey On 23/03/16 08:51, chandra shekhar wrote: Hi Sergey, I set CONNECTION_TTL but I do not see any affect. I see that connection always close in a minute which I see is receiveTimeout default value. Any suggestions here. -- View this message in context: ht

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-22 Thread chandra shekhar
Hi Sergey, I set CONNECTION_TTL but I do not see any affect. I see that connection always close in a minute which I see is receiveTimeout default value. Any suggestions here. -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2014-08-06 Thread Sergey Beryozkin
Hi Are you setting a org.apache.cxf.transport.http.async.CONNECTION_TTL property ? Do you use the same client instance ? Thanks, Sergey On 05/08/14 19:18, WillD wrote: Hi All, I am trying to make JAXRS clients works with HttpAsyncClient. I have configured my client as described on this page