processone / tsung

Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
http://www.process-one.net/en/tsung/
GNU General Public License v2.0
2.52k stars 404 forks source link

Don't reset session on change_type #379

Open axelson opened 3 years ago

axelson commented 3 years ago

From looking at the code (and experimenting) it appears that when you have a change_type in your configuration, a new session is generated (unless there is one to restore from): https://github.com/processone/tsung/blob/4094df6054727f39fc45f999d719433f0047a5a8/src/tsung/ts_client.erl#L488

Instead I'd like to be able to keep the session that was previously being used. My use-case is that I am trying to do load testing of Phoenix LiveView and I need to keep the session from an HTTP request to a Websocket request. Is it possible to add such a configuration option?