Bug 64289 - Make httpclient4.time_to_live defaults to 60000 to be closer to typical browser behavior
Summary: Make httpclient4.time_to_live defaults to 60000 to be closer to typical brows...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.2.1
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.3.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2020-03-30 07:09 UTC by Philippe Mouawad
Modified: 2020-03-30 07:17 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2020-03-30 07:09:34 UTC
As per following discussion:
- https://mail-archives.apache.org/mod_mbox/jmeter-dev/201912.mbox/%3cCAB=Je-EY2ZqJh6itS_FK241wRY9o-+QtUA40+wcum+G4VZLp9w@mail.gmail.com%3e

httpclient4.time_to_live defaults to 2000 which is way less than the typical browser behavior

JMeter defaults to 2 seconds timeout for keep-alive HTTP connections, which
seems to be much less than the typical browser configuration.

https://en.wikipedia.org/wiki/HTTP_persistent_connection#Use_in_web_browsers
,
https://fastmail.blog/2011/06/28/http-keep-alive-connection-timeouts/
suggest that:
IE: 60 sec
FireFox: 115 sec
Chrome: 300 sec



Discussion proposes to switch values for:
- httpclient4.time_to_live from 2000 to 60000

This value is a consequence:
httpclient4.validate_after_inactivity from 1700 to 4900
Comment 1 Philippe Mouawad 2020-03-30 07:17:36 UTC
This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fd406b  Bug 64289 - Make httpclient4.time_to_live defaults to 60000 to be closer to typical browser behavior
9fd406b is described below

commit 9fd406bb8f604d62981827dfe546a7027dbb76df
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Mon Mar 30 09:12:44 2020 +0200

    Bug 64289 - Make httpclient4.time_to_live defaults to 60000 to be closer
    to typical browser behavior
---
 bin/jmeter.properties                                                 | 4 ++--
 .../java/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java     | 4 ++--
 xdocs/changes.xml                                                     | 1 +
 xdocs/usermanual/properties_reference.xml                             | 4 ++--
 4 files changed, 7 insertions(+), 6 deletions(-)

This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new da12f11  Bug 64289 - Make httpclient4.time_to_live defaults to 60000 to be closer to typical browser behavior
da12f11 is described below

commit da12f113a2d07d9e6c96b3940b2012056aa84a01
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Mon Mar 30 09:15:46 2020 +0200

    Bug 64289 - Make httpclient4.time_to_live defaults to 60000 to be closer
    to typical browser behavior

    Mention in Incompatible changes
---
 xdocs/changes.xml | 2 ++
 1 file changed, 2 insertions(+)