Hi Dmitri,
Thanks for your response but limiting the timeout is not the cause - I did it 
intentionally because I don't want to wait for too long for the request to fail 
when debugging. There is no problem at all when I comment out the last request 
involving the doc display.
Thanks,Jun
    On Friday, September 9, 2022 at 02:32:45 PM EDT, Dmitri T 
<[email protected]> wrote:  
 
 It looks like you defined a *Response Timeout* either in the HTTP 
Request 
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request> 
sampler or using HTTP Request Defaults 
<https://www.blazemeter.com/blog/jmeter-http-request#Best%20Practices> 
(the setting lives under "Advanced" tab) and the response time for this 
particular request is higher than the timeout you've set.

Double check your configuration and increase the timeout and it should 
resolve your issue. You may also consider setting it to relatively high 
value (i.e. couple of minutes) and use Duration Assertion 
<https://jmeter.apache.org/usermanual/component_reference.html#Duration_Assertion>
 
to conditionally mark Samplers as failed if their response time exceeds 
acceptable thresholds.

On 9/9/2022 4:29 PM, Jun Zhuang wrote:
> *Behavior of the application:*user clicks a button; as a result, a new 
> tab will be opened to display a document.
> *Issue:* In the script, after making above request, the flow goes back 
> to the main page to perform other actions but the immediate request 
> following the "doc display" above always throws following error:
>
> java.net.SocketTimeoutException: Read timed out
> at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:280)
> at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:306)
> at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:347)
> at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:800)
> at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
> at 
> java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
> at 
> java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
> at 
> java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
> at 
> java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1460)
> at 
> java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1064)
> at 
> org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
> at 
> org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
> at 
> org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
> at 
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
> at 
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
> at 
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
> at 
> org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
> at 
> org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
> at 
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
> at 
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
> at 
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
> at 
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at 
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> at 
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:939)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:650)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1301)
> at 
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1290)
> at 
> org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
> at 
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
> at 
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
> at java.base/java.lang.Thread.run(Thread.java:833)
>
> *Following is a screenshot of my script:*
>
> Inline image
>
>
> What can I do to prevent the error?
>
> Thanks,
> Jun
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:[email protected]
> For additional commands, e-mail:[email protected]  

Reply via email to