Hello,
I have some strange behaviour with some long running scenarios using http/2 protocol and gatling 3.0.2
The scenario uses a forever loop, repeating the same action a lot of times. As this is the same iteration, gatling uses always the same http/2 session all the time (which is fine for me in this case)
After some time, I receive such errors from the scenario:
16:56:12.918 [WARN ] i.g.h.e.r.DefaultStatsProcessor - Request ‘xxx’ failed for user 1: i.n.h.c.h.Http2Exception$StreamException: Cannot create stream 2003 greater than Last-Stream-ID 2001 from GOAWAY.
What I suspect is that the first proxy of the infrastructure (which I don’t have access) is only accepting 2000 requests for each http/2 connection and then sent a GOAWAY to indicate the browser to establish a new session, which is probably done transparently by the browser.
I was wondering if there were any option in Gatling to reestablish automatically a new session in this case, as would do a browser ?
I also noticed that without a proper “ExitHereIfFailed”, the scenario continues to try to use the http/2 session, which is yet definitively unusable.
Regards,
Emmanuel
PS: I was able to implement a simple workaround: replace the forever by a repeat and limit the number of requests done by each iteration.