tailscale/ssh/tailssh
Maisem Ali 2474bd2754
ssh/tailssh: use background context for uploading recordings
Otherwise we see errors like
```
ssh-session(sess-20230322T005655-5562985593): recording: error sending recording to <addr>:80: Post "http://<addr>:80/record": context canceled
```

The ss.ctx is closed when the session closes, but we don't want to break the upload at that time. Instead we want to wait for the session to
close the writer when it finishes, which it is already doing.

Updates tailscale/corp#9967

Signed-off-by: Maisem Ali <maisem@tailscale.com>
(cherry picked from commit c350cd1f06)
2023-03-31 17:00:10 -07:00
..
incubator.go ssh/tailssh: fix privilege dropping on FreeBSD; add tests 2023-03-21 16:47:53 -07:00
incubator_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
privs_test.go ssh/tailssh: fix privilege dropping on FreeBSD; add tests 2023-03-21 16:47:53 -07:00
tailssh.go ssh/tailssh: use background context for uploading recordings 2023-03-31 17:00:10 -07:00
tailssh_test.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00