# Get Request

**URL:** <https://community.gatling.io/t/get-request/2074>\
**Category:** Gatling (Open-Source)\
**Created:** [February 28, 2015, 3:17pm UTC](https://community.gatling.io/t/get-request/2074 "2015-02-28T15:17:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://community.gatling.io/u/Jamie)\
**Post date:** [February 28, 2015, 3:17pm UTC](https://community.gatling.io/t/get-request/2074/1 "2015-02-28T15:17:37Z")

</div>

Hi,

When I have the following script:

val httpProtocol = http  
.baseURL(“[http://mychatserver.cloudapp.net:8080](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

---

<div class="post-metadata">

**Author:** ![Nikolay\_Vasilev](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@Nikolay\_Vasilev](https://community.gatling.io/u/Nikolay_Vasilev)\
**Post date:** [February 28, 2015, 4:04pm UTC](https://community.gatling.io/t/get-request/2074/2 "2015-02-28T16:04:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 3, 2015, 10:31am UTC](https://community.gatling.io/t/get-request/2074/3 "2015-03-03T10:31:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://community.gatling.io/u/Jamie)\
**Post date:** [March 3, 2015, 4:05pm UTC](https://community.gatling.io/t/get-request/2074/4 "2015-03-03T16:05:58Z")

</div>

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

Jamie
