gt; > seeing:
> > >
> > > - When the server has never been requested it shuts down
> > instantly
> > > ✔️
> > > - When the server has been requested by a client without keep-
> > alive
> > > it
> > > shuts down instantly ✔️
> &g
gt; > shutting
> > down with `shutdown(5, TimeUnit.SECONDS)` and
> > `close(CloseMode.GRACEFUL)` respectively. Here is what I am seeing:
> >
> > - When the server has never been requested it shuts down instantly
> > ✔️
> > - When the server has been request
hutting
> down with `shutdown(5, TimeUnit.SECONDS)` and
> `close(CloseMode.GRACEFUL)` respectively. Here is what I am seeing:
>
> - When the server has never been requested it shuts down instantly
> ✔️
> - When the server has been requested by a client without keep-alive
> it
)` respectively. Here is what I am seeing:
- When the server has never been requested it shuts down instantly
✔️
- When the server has been requested by a client without keep-alive it
shuts down instantly ✔️
- When the server has been requested by a client with keep-alive and the
request is in-flight
; setConnectionTimeToLive(2000, TimeUnit.MILLISECONDS).
> > setRetryHandler(new
> > StandardHttpRequestRetryHandler(0,
> > false)).
> >
> > setConnectionReuseStrategy(DefaultClientConnectionReuseStrategy.INSTA
> > NCE).
> &g
related to
> >> http commons client 3.x
> >>
> >> http://httpcomponents.10934.n7.nabble.com/quot-Keep-alive-quot-stale-connections-and-socket-reuse-td15315.html
> >>
> >> I am using PoolingHttpClientConnectionManager with following SocketConfi
On 6/7/16 6:13 AM, Oleg Kalnichevski wrote:
On Mon, 2016-06-06 at 13:43 -0700, Rallavagu wrote:
HttpClient 4.3.2, JDK 7
I was doing something similar to what is talked in this link related to
http commons client 3.x
http://httpcomponents.10934.n7.nabble.com/quot-Keep-alive-quot-stale
On Mon, 2016-06-06 at 13:43 -0700, Rallavagu wrote:
> HttpClient 4.3.2, JDK 7
>
> I was doing something similar to what is talked in this link related to
> http commons client 3.x
>
> http://httpcomponents.10934.n7.nabble.com/quot-Keep-alive-quot-stale-connections-and-socket-
HttpClient 4.3.2, JDK 7
I was doing something similar to what is talked in this link related to
http commons client 3.x
http://httpcomponents.10934.n7.nabble.com/quot-Keep-alive-quot-stale-connections-and-socket-reuse-td15315.html
I am using PoolingHttpClientConnectionManager with following
ort to
configure the keepalive times, they only allow to turn it on.
Yes. As I know the only way to set those timeouts is configuring Linux
parameters. By default keep-alive timeout is 2 hours which is too long :)
Some explanations:
http://stackoverflow.com/questions/1480236/does-a-tcp-socket-connec
2:37
Subject: Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)
Thank you. I updated Apache HttpClient version as you described. However,
it didn't help, TCP KeepAlive packets were not sent between client and
server.
If correctly understand, the problem is that I cannot edit TCP KeepA
sion of HttpClient are you using? It looks like something
> > > fairly
> > > > old.
> > > > It is 4.2.2. Actually I use Spring 3.2.1 httpInvoker which uses
> > > > Defa
ing
> > fairly
> > > old.
> > > It is 4.2.2. Actually I use Spring 3.2.1 httpInvoker which uses
> > > DefaultHttpClient.
> > >
> >
> > Please consider upgrading. I am not entirely sure if HC 4.2 supports TCP
> > keepalive setting.
>
uses
> > DefaultHttpClient.
> >
>
> Please consider upgrading. I am not entirely sure if HC 4.2 supports TCP
> keepalive setting.
>
> Oleg
>
> > > Using TCP keepalive wont help you with default OS settings, it would
> not
> >
start to send them in the first 20 idle minutes.
> Can I configure Apache httpd server to do this (set keep-alive timeouts)?
>
> Thanks,
> Baratali.
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org
live wont help you with default OS settings, it would not
start to send them in the first 20 idle minutes.
Can I configure Apache httpd server to do this (set keep-alive timeouts)?
Thanks,
Baratali.
i 2016 18:46
Subject: Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)
On Wed, 2016-05-11 at 15:52 +0100, Baratali Izmailov wrote:
> Hello,
>
> I have http request that takes too much time to be processed by the server
> (about 5 minutes). Because connection becomes idle for 5
On Wed, 2016-05-11 at 15:52 +0100, Baratali Izmailov wrote:
> Hello,
>
> I have http request that takes too much time to be processed by the server
> (about 5 minutes). Because connection becomes idle for 5 minutes, proxy
> server shutdowns the connection. I'm trying to use
gt; I have http request that takes too much time to be processed by the server
> (about 5 minutes). Because connection becomes idle for 5 minutes, proxy
> server shutdowns the connection. I'm trying to use TCP Keep-Alive in Apache
> DefaultHttpClient to make connection be alive for a long time
Hello,
I have http request that takes too much time to be processed by the server
(about 5 minutes). Because connection becomes idle for 5 minutes, proxy
server shutdowns the connection. I'm trying to use TCP Keep-Alive in Apache
DefaultHttpClient to make connection be alive for a long time
Hello,
After migrating to 4.3 from 4.1, I dont get keep-alive connections working.
My code is:
(
)
if (this.vkas == null) this.vkas = new KeepAliveStrategy(keepAliveDuration);
else this.vkas.setKeepAliveDuration(keepAliveDuration);
(...)
HttpClientBuilder hcBuilder
Hello,
Forget it ...
Thanks.
Joan.
-Mensaje original-
De: Joan Balagueró [mailto:joan.balagu...@grupoventus.com]
Enviado el: jueves, 13 de marzo de 2014 19:23
Para: httpclient-users@hc.apache.org
Asunto: Keep alive
Hello,
After migrating to 4.3 from 4.1, I dont get keep-alive
You can use IdleConnectionTimeoutThread for the same :)
On Fri, Apr 1, 2011 at 12:41 AM, Vadheraju, Rajeshwar
rajeshwar.vadher...@fisglobal.com wrote:
Yes, agreed. I think it is good idea to implement retry and idle
connection handler as opposed to keep alive strategy.
How did you implement
To: HttpClient User Discussion
Subject: Re: Keep alive
You can use IdleConnectionTimeoutThread for the same :)
On Fri, Apr 1, 2011 at 12:41 AM, Vadheraju, Rajeshwar
rajeshwar.vadher...@fisglobal.com wrote:
Yes, agreed. I think it is good idea to implement retry and idle
connection handler as opposed
connection is being re-used.
Thanks,
Sam
On 31 March 2011 17:12, Joan Balaguero joan.balagu...@grupoventus.com wrote:
Hello Oleg,
I’ve implemented a Connection Keep Alive strategy in my app, but I’m not
able to see what is the better way to check if it’s working ok. Could you
give any clue
Hi Joan,
I'm also researching on the same area. Could you please provide some
details why you are implementing keep alive strategy?
In other words, What problems prompted you to implement keep alive
strategy? If you could elaborate on your issue, I could share some of my
experience and research
Hello,
Thanks, it seems to work. Keep-Alive = 10 seconds.
First request (creates new connection)
Get connection: HttpRoute[{}-http://10.20.30.105:80], timeout = 1
[HttpRoute[{}-http://10.20.30.105:80]] kept alive: 0, issued: 0, allocated:
0 out of 500
No free connections [HttpRoute[{}-http
[mailto:rajeshwar.vadher...@fisglobal.com]
Enviado el: jueves, 31 de marzo de 2011 18:19
Para: HttpClient User Discussion
Asunto: RE: Keep alive
Hi Joan,
I'm also researching on the same area. Could you please provide some
details why you are implementing keep alive strategy?
In other words, What problems prompted you
Yes, agreed. I think it is good idea to implement retry and idle
connection handler as opposed to keep alive strategy.
How did you implement or use idle connection thread? I am using xfire as
my soap framework which uses MultiThreadedConnectionManager internally,
not sure how to tell xfire to use
On Fri, 2010-06-18 at 12:51 +0200, Joan Balaguero wrote:
Hello Oleg,
Thanks for your response.
What I mean by removing keep alive strategy is the following. I have an
administration application with the following option:
[x] Keep alive http connection for [ ] seconds
Ok, then my 'getKeepAliveDuration' method should do:
1. If the user enters a 'keepAliveDuration' ( 0) -- return this value.
2. If the user does not check 'keep-alive', then:
2.1. if 'keep-alive' header exists -- return its value.
2.2. if not, return Integer.MAX_VALUE.
Is this right
- POST /router/rest HTTP/1.1[EOL]
10:27:29,853 DEBUG wire:78 - Content-Length: 188[EOL]
10:27:29,853 DEBUG wire:78 - Content-Type:
application/x-www-form-urlencoded[EOL]
10:27:29,853 DEBUG wire:78 - Host: 192.168.208.110[EOL]
10:27:29,853 DEBUG wire:78 - Connection: Keep-Alive[EOL]
10:27:29,853
- Releasing connection
[HttpRoute[{}-http://192.168.208.110]][null]
17:33:33,065 DEBUG ConnPoolByRoute:394 - Pooling connection [HttpRoute[{}-
http://192.168.208.110]][null]; keep alive for 15000 MILLISECONDS
Who can tell me why this is?
It is just not possible to tell from 16
://192.168.208.110]][null]; keep alive for 15000 MILLISECONDS
Who can tell me why this is?
It is just not possible to tell from 16 milliseconds of logs.
Oleg
-
To unsubscribe, e-mail: httpclient-users-unsubscr
:33:33,065 DEBUG ConnPoolByRoute:394 - Pooling connection [HttpRoute[{}-
http://192.168.208.110]][null]; keep alive for 15000 MILLISECONDS
Who can tell me why this is?
--
best Regards
alin
Thank you for the answers!
Regards, Dobri
On Tue, Sep 2, 2008 at 9:20 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote:
On Mon, 2008-09-01 at 17:27 +0300, Dobri Kitipov wrote:
Hi Oleg,
I have one additional more abstract question. What I have observed during
my
tests was that when I run my
On Mon, 2008-09-01 at 17:27 +0300, Dobri Kitipov wrote:
Hi Oleg,
I have one additional more abstract question. What I have observed during my
tests was that when I run my test scenarion with 5 WS consecutive
invocations and sniff the traffic I can see that the sockets were reused.
The problem
On Mon, 2008-09-01 at 16:33 +0300, Dobri Kitipov wrote:
Hi Oleg,
thank you for the detailed answer of my question.
It seems we need to recommend the Axis2 guys to use the better version. Do
you know when there will be an official release of HttpClient 4.0-beta1?
Thank you,
Dobri
] wrote:
On Thu, 2008-08-28 at 14:51 +0300, Dobri Kitipov wrote:
Hi,
I am trying to explain myself how the keep-alive, or TCP connection
persistence, is supposed to work? I have read several resources about
that,
but I still have some questions (
http://java.sun.com/j2se/1.5.0/docs/guide
Hi,
I am trying to explain myself how the keep-alive, or TCP connection
persistence, is supposed to work? I have read several resources about that,
but I still have some questions (
http://java.sun.com/j2se/1.5.0/docs/guide/net/http-keepalive.html
http://hc.apache.org/httpclient-3.x
40 matches
Mail list logo