resolved: clean up dns_transaction_stop()
authorLennart Poettering <lennart@poettering.net>
Sun, 27 Dec 2015 21:58:17 +0000 (22:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 28 Dec 2015 13:46:39 +0000 (14:46 +0100)
commitf535705a457f9bee976a45baf20272b7228d0c65
tree55468ff4355a91f7b6a6c83e6c73f94fbec3db4b
parentca994e853c5408fcdeee66580e8b5056ad9e2c15
resolved: clean up dns_transaction_stop()

This renames dns_transaction_stop() to dns_transaction_stop_timeout()
and makes it only about stopping the transaction timeout. This is safe,
as in most occasions we call dns_transaction_stop() at the same time as
dns_transaction_close_connection() anyway, which does the rest of what
dns_transaction_stop() used to do. And in the one where we don't call
it, it's implicitly called by the UDP emission or TCP connection code.

This also closes the connections as we enter the validation phase of a
transaction, so that no further messages may be received then.
src/resolve/resolved-dns-transaction.c