Feature request: Make allowPoolingConnection configurable within simulation

Hi all,

Currently using 2.0.0M3a and switching over to 2.1.3
Issue noticed with 2.0.0.M3a and probably still exist in 2.1.3

We have to set/reset the following configuration items in gatling.conf depending on the simulation we are running. Some simulations require pooling and some do not.

Allow pooling HTTP/HTTPS connections (keep-alive header automatically added)

allowPoolingConnections = false
allowPoolingSslConnections = false

It would really be nice if this option could be made configurable within the simulation similar
to “disableFollowRedirect” or “shareConnections”.

I understand that the option is a tunable of AHC code and not a gatling tunable, per se.

So, it may or may not be doable.

If this feature already exists, please let me know. We looked through the archives and the gatling code for this.


Actually, you just have to set the “Connection” header to “Close” to all your requests in your scenario (use the HttpProtocol for this):