HostService.Send: the server's side of a file sent to the room #80
Loading…
Reference in a new issue
No description provided.
Delete branch "server-send"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces #77, which was based on main; this one is stacked on #75 (
server-shown-head, now rebased on main), so its schema step 4 comes after #75's step 3.Server side of
HostService.Send(proto: #74).Host.Sendchecks the session by its token, then the bounds, callsserver.Files.SendFile, and records aFileevent (no bytes). Chat refusals map:ErrFileTooLarge/ErrFileKindto InvalidArgument,ErrNoRoomto FailedPrecondition,ErrChatDownto Unavailable.LimitSendon the network listener: 401 before the body is read without a live session's token, 413 /MaxBytesReaderpast the largest file.Filekind is known to the transcript (scanEntry), the page (a notice line) and the raw stream (type: "file"), and has its own migration step to schema 4, which changes only the version.serve.Options.Filesis unset until the chat side'sAttachis adapted toserver.Files; Send answers Unavailable meanwhile. The changelog entry for Send is left to the PR that wires it.a9da7f8dfd972a7a8b93972a7a8b938df0c8d5a0