Gatling version:3.13.1
Gatling flavor: java
Gatling build tool: gradle
Hello,
I’m trying to process SSE unmatched messages with the following:
exec(
sse("sse - connect")
.post(uri)
.await(TIMEOUT)
.on(checks))
.exec(
sse
.processUnmatchedMessages(processMessages))
.exec(
sse("sse - close")
.close()));
but error is encountered during processUnmatchedMessages
i.g.h.a.s.SseProcessUnmatchedInboundMessagesBuilder$$anon$1 - ‘sseProcessUnmatchedMessages-8’ failed to execute: Couldn’t fetch open sse
which I take is due to the connection being closed by server right after sending all messages.
I’m handling unmatched messages since number of messages returned by server is unknown. Using a looped check list is not also possible since it will attempt to reconnect to server again and restart the process in server.
Is there a way to process SSE unmatched messages of a closed connection?
Or alternatively, is there a function that can set a session attribute name where all unmatched messages will be saved?
Thanks.