daemon/worker: adjust tcp timeouts
This is an attempt to fix two problems: 1. kresd tries to close incoming TCP connection too early. This may lead to multiple client reconnections. This problem primarily affects TCP/TLS clients who send several queries over single TCP connection. 2. In certain circumstances outbound TCP connection doesn't timeout despite that fact that upstream doesn't send back any answers. This may lead to timeouts on non-problematic queries.
Showing with 30 additions and 24 deletions