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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to