abstracta / jmeter-java-dsl

Simple JMeter performance tests API
https://abstracta.github.io/jmeter-java-dsl/
Apache License 2.0
476 stars 58 forks source link

How to enable disable connection reuse #277

Open ihsaddamhussain opened 3 months ago

ihsaddamhussain commented 3 months ago

I am looking for a way to enable tor disable connection reuse with each request. How do I set the keep alive session in dsl. I am having hard time to figure out the way.

rabelenda commented 3 months ago

Hello, thank you for trying and reporting this.

Currently the library does not provide any method to set this behavior, but it should be quite easy to add. Do you think you can contribute with the PR?

You can also try as workaround to set the Connection header to close when you don't want to use keep alive for some connection.

ihsaddamhussain commented 2 months ago

Sure, I will raise a PR for this