aboutsummaryrefslogtreecommitdiffstats
path: root/rwcancel/rwcancel.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* all: adjust build tags for wasip1/wasmBrad Fitzpatrick2023-07-041-1/+1
| | | | | Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright yearJason A. Donenfeld2023-02-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright yearJason A. Donenfeld2022-09-201-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ipc, rwcancel: compile on js/wasmBrad Fitzpatrick2021-10-201-1/+1
| | | | Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
* global: remove old-style build tagsJason A. Donenfeld2021-10-121-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: use unix.Poll again but bump x/sys so it uses ppoll under the hoodJason A. Donenfeld2021-09-271-2/+2
| | | | | | | This reverts commit fcc601dbf0f6b626ec1d47a880cbe64f9c8fe385 but then bumps go.mod. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: use ppoll on Linux for AndroidJason A. Donenfeld2021-09-261-2/+2
| | | | | | | This is a temporary measure while we wait for https://go-review.googlesource.com/c/sys/+/352310 to land. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: add new go 1.17 build commentsJason A. Donenfeld2021-09-051-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: use ordinary os.ErrClosed instead of custom errorJason A. Donenfeld2021-05-201-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: use poll instead of selectJason A. Donenfeld2021-05-201-21/+12
| | | | | Suggested-by: Lennart Poettering <lennart@poettering.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: add an explicit close callJason A. Donenfeld2021-02-091-0/+5
| | | | | | This lets us collect FDs even if the GC doesn't do it for us. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: use errors.Is for unwrappingJason A. Donenfeld2021-02-091-11/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyrightJason A. Donenfeld2021-01-281-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update header comments and modulesJason A. Donenfeld2020-05-021-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: no-op builds for windows and darwinDavid Crawshaw2020-03-301-0/+4
| | | | | | | | This lets us include the package on those platforms in a followup commit where we split out a conn package from device. It also lets us run `go test ./...` when developing on macOS. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
* rwcancel: handle EINTR and EAGAIN in unixSelect()Avery Pennarun2019-10-171-2/+14
| | | | | | | | | | | | On my Chromebook (Linux 4.19.44 in a VM) and on an AWS EC2 machine, select() was sometimes returning EINTR. This is harmless and just means you should try again. So let's try again. This eliminates a problem where the tunnel fails to come up correctly and the program needs to be restarted. Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
* global: regroup all importsJason A. Donenfeld2019-05-141-1/+2
|
* Extend structs rather than embed, when possibleJason A. Donenfeld2019-02-051-2/+2
|
* Update copyrightJason A. Donenfeld2019-02-051-2/+2
|
* global: fix up copyright headersJason A. Donenfeld2018-09-161-1/+1
|
* Catch EINTRJason A. Donenfeld2018-05-241-8/+9
|
* Add FreeBSD supportBrady OBrien2018-05-211-0/+113
Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>