Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-12-18 | nslcd_systemd: return EXIT_NETWORK for network errors | Luke Shumaker | |
2017-12-18 | nslcd_systemd: don't call err.Error() unnecessarily | Luke Shumaker | |
2017-09-08 | nslcd_systemd: add `import "os"` to the example in the docs | Luke Shumaker | |
2017-09-08 | nslcd_server: Add a request size limit | Luke Shumaker | |
2017-09-08 | add a test for tricking the server into allocating huge buffers | Luke Shumaker | |
2017-09-08 | test: clean up, create a parameterized testDriver() | Luke Shumaker | |
2017-09-08 | nslcd_{server,systemd}: FIX, BREAKING CHANGE: add limits | Luke Shumaker | |
Added types: nslcd_server: type Limits struct { ...} nslcd_server: type Conn interface{ ... } // a subset of net.Conn nslcd_server.HandleRequest() signature change: -func HandleRequest(backend Backend, in io.Reader, out io.Writer, cred unix.Ucred) (err error) { +func HandleRequest(backend Backend, limits Limits, conn Conn, cred unix.Ucred) (err error) { The `limits Limits` argument is added, and `conn Conn` replaces `in io.Reader` and `out io.Writer`. nslcd_systemd.Main() signature change: -func Main(backend Backend) uint8 { +func Main(backend Backend, limits nslcd_server.Limits) uint8 { The `limits Limits` argument is added. | |||
2017-09-08 | nslcd_systemd: FIX: avoid a race condition | Luke Shumaker | |
Spawn handler goroutines from listener goroutine. This fixes a race condition where main | listener ----------+----------------- | conn = accept() return | | sock <- conn and the connection is *not* handled (despite being accepted). | |||
2017-09-08 | add tests | Luke Shumaker | |
2017-09-08 | nslcd_systemd: say "temporary error" when logging a temporary net error | Luke Shumaker | |
2017-09-08 | nslcd_systemd: backoff on temporary net errors | Luke Shumaker | |
The logic for backof size is based on the net/http server. | |||
2017-09-08 | nslcd_systemd: Don't spew errors about "closed network socket" while stopping | Luke Shumaker | |
2017-09-08 | nslcd_systemd: Allow permanent network errors to make us exit | Luke Shumaker | |
2017-09-08 | nslcd_systemd: Use go 1.9 syscall.RawConn to implement getpeercred() | Luke Shumaker | |
Eh. I'm not really sure how I feel about this change. I feel better about the syscalls that the program makes. But the code is longer. There's more boilerplate. I wish syscall.RawConn let our function return an error that would bubble up. | |||
2017-09-08 | nslcd_systemd: log a notice when reloading | Luke Shumaker | |
2017-09-04 | add canonical import paths | Luke Shumaker | |
2017-05-14 | remove dead assignments | Luke Shumaker | |
2017-01-18 | Update for change in sd_notify. | Luke Shumaker | |
2017-01-14 | Rename packages: lukeshu.com/git/go/*.git -> git.lukeshu.com/go/* | Luke Shumaker | |
2017-01-01 | Update for new libsystemd. | Luke Shumaker | |
2016-12-19 | Use x/sys/unix instead of the deprecated syscall. BREAKING CHANGE. | Luke Shumaker | |
This is just a search/replace s/syscall/unix/g in the broken code. | |||
2016-12-18 | Rename packages to make goimports happy. BREAKING CHANGE. | Luke Shumaker | |