Skip to content

add support for timeouts - #88

Open
cfal wants to merge 1 commit into
elisescu:masterfrom
cfal:support-timeout
Open

add support for timeouts#88
cfal wants to merge 1 commit into
elisescu:masterfrom
cfal:support-timeout

Conversation

@cfal

@cfal cfal commented May 5, 2025

Copy link
Copy Markdown
Contributor

hi @elisescu , this PR adds support for timeouts for privacy - i'm worried that i left an active tty-share session around, and so usually schedule a pkill tty-share, but that doesn't work well without more complex code for the scenario that i have multiple tty-share sessions started. please take a look, thanks!

@elisescu

Copy link
Copy Markdown
Owner

Thanks @cfal, nice little feature. I do have one inline comment. Let me know if you are interested to change that, otherwise I can do it.

@cfal

cfal commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @cfal, nice little feature. I do have one inline comment. Let me know if you are interested to change that, otherwise I can do it.

hi @elisescu! i don't see the inline comment, can you take a look?

@elisescu elisescu left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@cfal, my bad. Here's the inline comment I was talking about

Comment thread main.go
tunnelConfig := flag.String("L", "", "[c] TCP tunneling addresses: local_port:remote_host:remote_port. The client will listen on local_port for TCP connections, and will forward those to the from the server side to remote_host:remote_port")
crossOrgin := flag.Bool("cross-origin", false, "[s] Allow cross origin requests to the server")
baseUrlPath := flag.String("base-url-path", "", "[s] The base URL path on the serve")
timeoutDuration := flag.Duration("timeout", 0, "[s] The max duration the tty-server session should run for, before timing out. The value is a sequence of numbers with time units, eg. 10m, 1h, 1h30m10s")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think the "timeout" flag name can be confused with a timeout of the connection in case of network issues, so I would rather find a different name for the "feature" and the flag. Something that communicates more clearly that this is not a connection timeout, but a maximum for the lifetime of the connection.

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