Get Request

Hi,

When I have the following script:

val httpProtocol = http
.baseURL(“http://mychatserver.cloudapp.net:8080”)

val scn = scenario(“GetApplication”)
.group(“GetApplication”){
exec(http(“indexhtml”)
.get("/static/index.html"))
.exec(http(“registerhtml”)
.get("/static/register.html"))
.exec(http(“mainhtml”)
.get("/static/main.html"))
}

Is a new connection for each get request being done, or it uses keep alive implicitly? If it uses keep alive can I make sure that the connection is closed after the end of session?

Thank you.

Jamie Tabone

I asked something similar some days ago but still waiting for answer…

By default (= if you don’t change the values in gatling.conf or if you don’t force a Connection request header):

  • keep alive is enabled

  • connection pools are per virtual user

  • the connection pool associated with a given virtual user is closed when the user is done

Ok. Thanks a lot. I will take that into consideration.

Jamie