# HTTP Connection control

**URL:** <https://community.gatling.io/t/http-connection-control/347>\
**Category:** Gatling (Open-Source)\
**Created:** [April 29, 2013, 9:32am UTC](https://community.gatling.io/t/http-connection-control/347 "2013-04-29T09:32:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Baptiste\_Reich](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jean-Baptiste\_Reich](https://community.gatling.io/u/Jean-Baptiste_Reich)\
**Post date:** [April 29, 2013, 9:32am UTC](https://community.gatling.io/t/http-connection-control/347/1 "2013-04-29T09:32:28Z")

</div>

Is it possible with Gatling to control the underlying HTTP  
connection ?

In my case, I would like:  
- to have one persistent connection to the server each time a  
scenario is launched (if I launch 10 times the scenario I will have 10  
HTTP connections).  
- to be able to control its expiration duration

Thanks

---

<div class="post-metadata">

**Author:** ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)\
**Post date:** [April 29, 2013, 9:39am UTC](https://community.gatling.io/t/http-connection-control/347/2 "2013-04-29T09:39:13Z")

</div>

Salut JB !

Everything is in the configuration file: [https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/gatling.conf#L49](https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/gatling.conf#L49)

cheers  
Nicolas

PS : cool to see you here

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [April 29, 2013, 9:43am UTC](https://community.gatling.io/t/http-connection-control/347/3 "2013-04-29T09:43:10Z")

</div>

Hi,

See Nico’s answer to the second point.

Regarding the first one, you’ll have to use Gatling 2 for users having their own connection pool.

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Jean-Baptiste\_Reich](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jean-Baptiste\_Reich](https://community.gatling.io/u/Jean-Baptiste_Reich)\
**Post date:** [April 29, 2013, 9:57am UTC](https://community.gatling.io/t/http-connection-control/347/4 "2013-04-29T09:57:18Z")

</div>

Thank you for both answers. That was fast !

@Nicolas: Good to see you here too !
