mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-06 14:07:51 +00:00
A server event over the 4 MiB limit closes the socket with 4009, which ends a connected conversation. During a reconnect attempt the same close was reported as `session_closed`, which is retried, so the conversation tried ten more times and finally closed with the original drop code. A replacement session opened after a restart notice was reopened again and again for the same reason. A 4009 close now ends the conversation during a reconnect too, reporting 4009, and a replacement session that hits it isn't reopened. Tests cover both, a multibyte event of exactly 4 MiB, and a whole retrieved item through the relay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>