]> granicus.if.org Git - pdns/commit
auth: Handle `read()` returning 0 in RemoteBackend's unix connector
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 10 Jun 2016 12:29:31 +0000 (14:29 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 10 Jun 2016 12:29:31 +0000 (14:29 +0200)
commit630f9fdcc7539bb2f98f1954296ea11ef7d01b2c
tree4702397ce6883dd86b541a6e0afd5643c6bc6815
parent3d6753a34b92065e3145cebd7c21dd0f5fa522b8
auth: Handle `read()` returning 0 in RemoteBackend's unix connector

Otherwise it looks like we may loop in `recv_message()` until the
timeout is reached if the other end closes the connection:
* `waitForData()` will return immediately
* `read()` will keep returning 0
modules/remotebackend/unixconnector.cc