You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/09/13 15:44:07 UTC
DO NOT REPLY [Bug 43385] New: - set individual read and connect timeout for java httpsampler
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43385
Summary: set individual read and connect timeout for java
httpsampler
Product: JMeter
Version: 2.3
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: christoph.schragen@gmx.at
JMeter is extended with the possibility to set a global connect timeout and an
individual read timeout for each http-request.
In the testplans the connect timeout can be parameterized in a property-file,
the read timeout may be set (per sample) in the GUI, the time unit is
milliseconds. The GUI of the (Java) HTTP Request sampler has been extended with
an input box to specify the response (read) timeout in milliseconds.
For all testplans, the default connect and read timeout may be specified in
user.properties or jmeter.properties via:
httpsampler.timeout.connect=2000
httpsampler.timeout.read=5000
If no timeout is specified, JMeter will not set timeouts for any request!
An individual read timeout may be set at the HttpRequest-sampler (Optional
Tasks Panel). If this textbox is left empty, the default timeout will be used.
A timeout of "0" is a timeout of infinity (= no timeout).
this implementation only works for java httpsampler and not httpsampler2, so
the panel for setting the timeout value in httpsampler2 is not visible here.
if a sockettimeoutexception occurrs (read timed out, connect timeout,
connection reset), the httpsampler fails with a respective responsecode.
i've applied the patch, if you find this feature useful.
greets,
chris
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 43385] - set individual read and connect timeout for java httpsampler
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43385
------- Additional Comments From christoph.schragen@gmx.at 2007-09-13 06:44 -------
Created an attachment (id=20818)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20818&action=view)
httpsampler timeouts enhancement
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 43385] - set individual read and connect timeout for java httpsampler
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43385
------- Additional Comments From sebb@apache.org 2007-12-05 12:47 -------
Thanks for the patch, however the setXXXTimeout() methods are Java 1.5 only.
JMeter is currently targeted at Java 1.4 and later, so unfortunately this
patch cannot be applied at present.
Also, HttpClient supports the timeouts already see:
http://jakarta.apache.org/httpcomponents/httpclient-3.x/preference-
api.html#HTTP_connection_parameters
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org