summaryrefslogtreecommitdiff
path: root/nslcd_systemd/nslcd_systemd.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-08 14:21:38 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-08 16:55:55 -0400
commit4d410a5f047b5b4b55b2dcfc29d5264de695fe94 (patch)
tree6b81968e7d9bf0b15cd937823e69d7d558362ad0 /nslcd_systemd/nslcd_systemd.go
parent7b8aefea056f995ee2d00a79c22277c09cda5363 (diff)
nslcd_server: FIX: HandleRequest(): error handling
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.
Diffstat (limited to 'nslcd_systemd/nslcd_systemd.go')
0 files changed, 0 insertions, 0 deletions