mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #623] [MERGED] Stream forwarder #1160
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#1160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/623
Author: @ku1ik
Created: 3/28/2024
Status: ✅ Merged
Merged: 4/14/2024
Merged by: @ku1ik
Base:
develop← Head:forwarder📝 Commits (10+)
0c7905dInitial version of stream forwarder0b282a5Send close frame in forwarder at the end of the stream0d7951bFix stream session shutdown when forwarder is in a reconnection loop48f64bbWait for server and forwarder shutdown for 5 sec tops61a13c5Prevent race condition when subscribing in session::stream()b4d0cbdUpdate diag message for stream client count83d08a0Easier stream forwarding to asciinema server -asciinema stream -fdd77179Bail when trying to nest stream sessions using the same relay URLa934381Rename -f and -l options of stream command to -r and -s respectively49749b0Add handling of 401 and 404 responses when obtaining stream info📊 Changes
10 files changed (+498 additions, -43 deletions)
View changed files
📝
Cargo.lock(+83 -10)📝
Cargo.toml(+3 -0)📝
src/cmd/mod.rs(+5 -1)📝
src/cmd/rec.rs(+1 -1)📝
src/cmd/stream.rs(+183 -11)➕
src/streamer/forwarder.rs(+162 -0)📝
src/streamer/mod.rs(+39 -14)📝
src/streamer/server.rs(+4 -4)📝
src/streamer/session.rs(+5 -2)📝
src/util.rs(+13 -0)📄 Description
This implements stream forwarding (to asciinema server) for
asciinema streamcommand.asciinema stream -r- relay the stream to user's default server streamasciinema stream -r <ID>- relay the stream to user's specific server streamasciinema stream -r -s- both relay and serve the stream locallyTODO:
-l/--listenbest name? rename to-s/--serve?-f/--forwardbest name? rename to-r/--relay?--tty-sizebest name? rename to-w/--winsize?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.