about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-05-15T09·49+0200
committerclbot <clbot@tvl.fyi>2024-06-03T14·55+0000
commit2ac89bb48073899d8e94f2d5dd949c877992c656 (patch)
tree278d741998b8d9975dfb914c86e18ff1bbcc726b /.envrc
parent3b8b47baba3f195583838522d4ce1635d689be1c (diff)
fix(users/Profpatsch/whatcd-resolver): fix transmission session r/8198
The logic around transmission session handling was f*cked, this fixes
that.

We use an IORef instead of an MVar, since we want to unconditionally
write the new value. Even if multiple requests race, I *hope* that
transmission returns the same session id, otherwise we might get a
request loop. But it should be fine. (The semantics is not nicely
documented in the RPC docs.)

Additionally, log the session ids in the requests.

Change-Id: Id7d33f8cb74cb349e502331cad5eb5abe8a624cd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11673
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to '.envrc')
0 files changed, 0 insertions, 0 deletions