fix(media,server): films over 128 MiB were refused; docs/media.md
Bun.serve refuses request bodies over 128 MiB by default, so every film larger than that got a 413 from both `shade media serve` and the container. The cap is now raised to the media object limit only when media is mounted, and every other route gets an explicit 128 MiB bodyLimit — several read the whole body before checking its size, so Bun's default was their only guard. Verified on the standalone process: 300 MiB sealed film round trip identical; a 200 MiB POST to a prekey route still 413. docs/media.md: formats (SMF1, SLF1, grants) as the cross-language contract, key schedule, what the relay learns, design notes, limits. bench/media.ts: throughput, seek latency, live fan-out → media.chart.json. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,5 +6,5 @@ export { createLiveRelay, FileLivePinStore, MemoryLivePinStore } from './server/
|
||||
export type { LiveRelay, LiveRelayOptions, LivePin, LivePinStore } from './server/live-relay.js';
|
||||
export { createWatchRoutes } from './server/watch-routes.js';
|
||||
export type { WatchRoutesOptions } from './server/watch-routes.js';
|
||||
export { createMediaService, parseOwners } from './server/service.js';
|
||||
export { createMediaService, parseOwners, mediaMaxRequestBody, MEDIA_BODY_ROUTE } from './server/service.js';
|
||||
export type { MediaService, MediaServiceOptions } from './server/service.js';
|
||||
|
||||
Reference in New Issue
Block a user