• Grigorii Demidov's avatar
    daemon/worker: adjust tcp timeouts · 2e4d4be4
    Grigorii Demidov authored
    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.
worker.c 69.1 KB