path: root/rwcancel (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-09-05global: add new go 1.17 build commentsJason A. Donenfeld1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-20rwcancel: use ordinary os.ErrClosed instead of custom errorJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-20rwcancel: use poll instead of selectJason A. Donenfeld4-73/+12
Suggested-by: Lennart Poettering <lennart@poettering.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-09rwcancel: add an explicit close callJason A. Donenfeld1-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>
2021-02-09rwcancel: use errors.Is for unwrappingJason A. Donenfeld1-11/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-01-28global: bump copyrightJason A. Donenfeld4-4/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-02global: update header comments and modulesJason A. Donenfeld4-4/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-30rwcancel: no-op builds for windows and darwinDavid Crawshaw4-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>
2019-10-17rwcancel: handle EINTR and EAGAIN in unixSelect()Avery Pennarun1-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>
2019-05-14global: regroup all importsJason A. Donenfeld1-1/+2
2019-02-05Extend structs rather than embed, when possibleJason A. Donenfeld2-5/+5
2019-02-05Update copyrightJason A. Donenfeld4-8/+8
2018-12-11Freebsd is finally normal in sys/unixJason A. Donenfeld2-24/+0
2018-09-16global: fix up copyright headersJason A. Donenfeld5-5/+5
2018-05-24Catch EINTRJason A. Donenfeld1-8/+9
2018-05-21Rework freebsd supportJason A. Donenfeld1-2/+2
2018-05-21Add FreeBSD supportBrady OBrien4-20/+54
Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
2018-05-14No more finalizer for rwcancelJason A. Donenfeld1-5/+0
2018-05-14Add rwcancelation to darwinJason A. Donenfeld3-2/+27
2018-05-14Introduce rwcancelJason A. Donenfeld1-0/+132