Hi,
I’m using grinder-3.4 for load testing. I’m using Test class wrap method to call HTTPRequest class GET method.
For particular tests, after connecting to the server and sending the request, the server fails to respond and closes the connection. It appears the HTTPRequest object reconnects to the server and resends the original request. The HTTPRequest
object will re-attempt to obtain a response 2 times (3 attempts in total) before an Exception is raised.
09/05/13 10:02:44 (thread 0 run 15 test 1): Aborted run due to Java exception calling TestRunner
Java exception calling TestRunner
response = test.GET(URL).getText()
Caused by: HTTPClient.RetryException: Premature EOF encountered
at HTTPClient.StreamDemultiplexor.retry_requests(StreamDemultiplexor.java:530)
at HTTPClient.StreamDemultiplexor.close(StreamDemultiplexor.java:498)
at HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:369)
at HTTPClient.RespInputStream.read(RespInputStream.java:155)
at HTTPClient.Response.readResponseHeaders(Response.java:998)
at HTTPClient.Response.getHeaders(Response.java:698)
at HTTPClient.Response.getVersion(Response.java:290)
at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3238)
at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2882)
at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2674)
at HTTPClient.HTTPConnection.Get(HTTPConnection.java:985)
at net.grinder.plugin.http.HTTPRequest$2.doRequest(HTTPRequest.java:509)
at net.grinder.plugin.http.HTTPRequest$AbstractRequest.getHTTPResponse(HTTPRequest.java:1252)
at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:504)
at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:450)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
at org.python.core.PyObject.__call__(PyObject.java:404)
at org.python.core.PyObject.__call__(PyObject.java:408)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at
Is there any way to control the number of retries performed by HTTPRequest? E.g. with HTTPPluginContol?
Many Thanks
David
contain confidential and privileged information of Transaction Network Services.
Any unauthorised review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail and destroy
Registered Office: Dunluce House, East Point, Dublin 3.
Directors: Fintan Byrne, M. Collins, M. Keegan (USA)