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 2009/06/05 21:25:01 UTC

DO NOT REPLY [Bug 47321] New: HTTPSampler2 response timeout not honored

https://issues.apache.org/bugzilla/show_bug.cgi?id=47321

           Summary: HTTPSampler2 response timeout not honored
           Product: JMeter
           Version: 2.3.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: ridai.govinda@gmail.com


Trying out the new HTTPSampler timeout configurations, I've noticed that the
response timeout wasn't being read somehow. It ALWAYS timed out. Connect
timeout worked correctly.

At org.apache.jmeter.protocolo.http.sampler.HTTPSampler2.java, line 574:

       int rto = getResponseTimeout();
        if (rto > 0){
            httpMethod.getParams().setSoTimeout(1);
        }

Reading the Java Socket documentation, the setSoTimeout understands
miliseconds! I just replaced to:

       int rto = getResponseTimeout();
        if (rto > 0){
            httpMethod.getParams().setSoTimeout(rto);
        }

Recompiled jmeter-2.3.3 and now it works correctly.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
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 47321] HTTPSampler2 response timeout not honored

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47321





--- Comment #1 from Ridai Govinda Pombo <ri...@gmail.com>  2009-06-08 07:13:21 PST ---
Created an attachment (id=23776)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23776)
HTTPSampler2.java modification

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
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 47321] HTTPSampler2 response timeout not honored

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47321


Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Sebb <se...@apache.org>  2009-06-09 18:38:37 PST ---
Oops! That was temporary test code that should have been replaced.

Thanks for the report; fixed in:

URL: http://svn.apache.org/viewvc?rev=783174&view=rev
Log:
Bug 47321 -  HTTPSampler2 response timeout not honored

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org