aboutsummaryrefslogtreecommitdiffstats
path: root/rwcancel (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: bump copyright yearHEADmasterJason A. Donenfeld2022-09-201-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: apply gofumptJason A. Donenfeld2021-12-091-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ipc, rwcancel: compile on js/wasmBrad Fitzpatrick2021-10-202-1/+3
| | | | 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-273-34/+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-263-2/+34
| | | | | | | 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-204-73/+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-284-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update header comments and modulesJason A. Donenfeld2020-05-024-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* rwcancel: no-op builds for windows and darwinDavid Crawshaw2020-03-304-2/+17
| | | | | | | | 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-052-5/+5
|
* Update copyrightJason A. Donenfeld2019-02-054-8/+8
|
* Freebsd is finally normal in sys/unixJason A. Donenfeld2018-12-112-24/+0
|
* global: fix up copyright headersJason A. Donenfeld2018-09-165-5/+5
|
* Catch EINTRJason A. Donenfeld2018-05-241-8/+9
|
* Rework freebsd supportJason A. Donenfeld2018-05-211-2/+2
|
* Add FreeBSD supportBrady OBrien2018-05-214-20/+54
| | | | Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
* No more finalizer for rwcancelJason A. Donenfeld2018-05-141-5/+0
|
* Add rwcancelation to darwinJason A. Donenfeld2018-05-143-2/+27
|
* Introduce rwcancelJason A. Donenfeld2018-05-141-0/+132