joffrey-bion / krossbow

A Kotlin multiplatform coroutine-based STOMP client over websockets, with built-in conversions.
MIT License
203 stars 15 forks source link

Transaction mutates headers object #542

Closed joffrey-bion closed 3 months ago

joffrey-bion commented 3 months ago

What happened?

When reusing a headers object in multiple StompSession.send() calls, the headers object is mutated if a call is wrapped in withTransaction, which leads to incorrect behavior for subsequent calls.

Reproduction and additional details

No response

Krossbow version

7.2.0

Krossbow modules

krossbow-stomp-core

Kotlin version

2.0.0

Kotlin target platforms

All targets / irrelevant