Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-09-08 | nslcd_server: FIX: HandleRequest(): error handling | Luke Shumaker | |
Instead of having a separate channel+goroutine for the backend, just call .Write() right where we get results from the backend, but don't let an error cause us to stop reading from the backend, an error should just cause us to stop writing. This ensures that the backend now always has its output chan drained; before if there were a write error, the backend chan wouldn't get drained, and the resources never released. | |||
2017-09-08 | nslcd_proto: BREAKING CHANGE: Rethink the panic strategy | Luke Shumaker | |
nslcd_proto.Read() and .Write() panic() with any errors that they may need to emit. This made composition really simple, I was OK with it being against the normal Go style. But, I'm not happy with it anymore; have them return errors now. This leads us in to nslcd_server.HandleRequest() using those panics for control flow. Add a maybePanic(error) function to wrap all of the proto.Read() and proto.Write() calls to restore the panicing behavior. | |||
2017-09-03 | nslcd_systemd: whoops, missed one of the dead assignments | Luke Shumaker | |
2017-01-14 | Rename packages: lukeshu.com/git/go/*.git -> git.lukeshu.com/go/* | Luke Shumaker | |
2017-01-02 | Tidy: make a private var const instead of var | 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 | |