Skip to content

fix: raise WebSocket max frame size for large model uploads - #58

Open
ericgozzi wants to merge 3 commits into
mainfrom
fix/websocket-max-size
Open

ericgozzi wants to merge 3 commits into
mainfrom
fix/websocket-max-size

Conversation

@ericgozzi

@ericgozzi ericgozzi commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • uvicorn's default ws_max_size (16 MiB) silently dropped the WebSocket connection, with no error shown, when a large .stkm.json was sent as a single text frame (the LoadTimberModel.vue upload path).
  • Raised to 256 MiB in server.py, which covers that path comfortably.

Stacked on #57 (spinner persistence); merge that first.

Test plan

  • pytest

🤖 Generated with Claude Code

asyncio.set_event_loop(self.loop)

config = uvicorn.Config(self.fastapi_app, host=host, port=port, log_level="warning")
# Default ws_max_size (16 MiB) is too small for a large uploaded .stkm.json sent as a

@gonzalocasas gonzalocasas Oct 11, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mention .stkm.json here, just large json files

@gonzalocasas gonzalocasas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, with a tiny little change request

Base automatically changed from fix/spinner-persistence to main October 13, 2026 09:23
ericgozzi and others added 3 commits October 13, 2026 11:23
uvicorn's default ws_max_size (16 MiB) silently dropped the WebSocket
connection with no surfaced error when a large .stkm.json was sent as a
single WebSocket text frame (LoadTimberModel.vue's upload path). Raise it
to 256 MiB to comfortably cover that path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ericgozzi
ericgozzi force-pushed the fix/websocket-max-size branch from c10f5ea to 0b39b56 Compare October 13, 2026 09:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants