hat 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 ✔️
&g
e()` and
> > 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 r
ng
> 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
&g
)` 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
HttpRequestRetryHandler(0,
> false)).
>
> setConnectionReuseStrategy(DefaultClientConnectionReuseStrategy.INSTA
> NCE).
> build()) {
> HttpHost target = new HttpHost("jmeter.apache.org");
> HttpPost request = new HttpPost("
ost target = new HttpHost("jmeter.apache.org");
HttpPost request = new HttpPost("/404.html");
request.addHeader("Content-Type",
"application/x-www-form-urlencoded; charset=UTF-8");
request.addHeader("Connection", "keep-ali
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
SocketConfig.
SocketConfig socketConfig =
SocketConfig.copy
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 SocketConfig.
SocketConfig socketConfig =
SocketConfig.copy(SocketConfig.DEFAULT).setSoKeepAlive
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
help to keep a connection open if an intermediate wants to be an annoyance.
Greetings
Bernd
--
http://bernd.eckenfels.net
-Original Message-
From: Baratali Izmailov
To: HttpClient User Discussion
Sent: Mi., 18 Mai 2016 12:37
Subject: Re: Apache HttpClient TCP Keep-Alive (socket keep
sing? It looks like something
> > > 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 i
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.
> >
> &g
t; > 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
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.
-idle. An alternative would be
to send 0-byte HTTP (content transfer) chunks from the server.
Gruss
Bernd
--
http://bernd.eckenfels.net
-Original Message-
From: Oleg Kalnichevski
To: HttpClient User Discussion
Sent: Mi., 11 Mai 2016 18:46
Subject: Re: Apache HttpClient TCP 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 minutes, proxy
> server shutdowns the connection. I'm trying to u
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 (Not confuse
>
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,
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
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
: 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
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
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 internal
connection problems.
Regards,
Joan.
-Mensaje original-
De: Vadheraju, Rajeshwar [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 p
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[{}
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 res
e same TCP connection is being re-used.
Thanks,
Sam
On 31 March 2011 17:12, Joan Balaguero 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
> giv
Hello Oleg,
Ive implemented a Connection Keep Alive strategy in my app, but Im not
able to see what is the better way to check if its working ok. Could you
give any clue about how to do this?
Thanks,
Joan.
On Fri, 2010-06-18 at 13:53 +0200, Joan Balaguero wrote:
> 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:
>
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.
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 connect
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.
If the user checks this option, he must enter a number greather than 0 as
On Wed, 2010-06-16 at 17:55 +0200, Joan Balaguero wrote:
> Hello,
>
>
>
> I have three questions abut keeupAlive:
>
>
>
>
>
> 1. If getKeepAliveDuration returns 0, that means:
>
> a. No keep alive
> OR
> b. Keep connections alive
Hello,
I have three questions abut keeupAlive:
1. If getKeepAliveDuration returns 0, that means:
a. No keep alive
OR
b. Keep connections alive indefinitely.
2. If I want to remove the keep alive strategy, what should I do? Call
http.setKeepAliveStrategy(null
On Tue, 15 Jun 2010 18:37:48 +0200, Laurent Perez
wrote:
> Hello
>
> I'm trying to understand if the v3, which my application currently
> uses, handles Keep-Alive properly - because our client says it does
> not.
>
> On several requests, using lsof, I can see that h
On Tue, 2010-06-15 at 18:37 +0200, Laurent Perez wrote:
> Hello
>
> I'm trying to understand if the v3, which my application currently
> uses, handles Keep-Alive properly - because our client says it does
> not.
>
Even if it is a paying client, your client still i
Hello
I'm trying to understand if the v3, which my application currently
uses, handles Keep-Alive properly - because our client says it does
not.
On several requests, using lsof, I can see that httpclient connections
in state ESTABLISHED gradually fall back to a CLOSE_WAIT state, and
they
:27:29,822 DEBUG RequestAddCookies:125 - CookieSpec selected: best-match
> 10:27:29,838 DEBUG DefaultRequestDirector:408 - Attempt 1 to execute request
> 10:27:29,838 DEBUG wire:78 - >> "POST /router/rest HTTP/1.1[EOL]"
> 10:27:29,853 DEBUG wire:78 - >> "Content-Leng
;> Content-Length: 188
10:27:29,853 DEBUG headers:254 - >> Content-Type:
application/x-www-form-urlencoded
10:27:29,853 DEBUG headers:254 - >> Host: 192.168.208.110
10:27:29,853 DEBUG headers:254 - >> Connection: Keep-Alive
10:27:29,853 DEBUG wire:78 - >>
"fields=name
> for 15000 ms
> > > 17:33:33,065 DEBUG ThreadSafeClientConnManager:221 - Released connection
> > is
> > > reusable.
> > > 17:33:33,065 DEBUG ConnPoolByRoute:374 - Releasing connection
> > > [HttpRoute[{}->http://192.168.208.
:33:33,065 DEBUG ConnPoolByRoute:374 - 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
> >
>
eClientConnManager:221 - Released connection is
> reusable.
> 17:33:33,065 DEBUG ConnPoolByRoute:374 - Releasing connection
> [HttpRoute[{}->http://192.168.208.110]][null]
> 17:33:33,065 DEBUG ConnPoolByRoute:394 - Pooling connection [HttpRoute[{}->
> http://192.168.208.110]][nu
>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?
--
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
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
>
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 pro
OTECTED]>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
&
TED]> 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 stil
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.c
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/http
56 matches
Mail list logo