Evan Hunt
dc1203b426
resolver: Fixed shutdown processing
...
- Prevent shutdown races: attach/detach to dns_resolver in dns_fetch_t
and fctx_t; delay destruction of fctx when finds are still active;
reference the fctx while canceling; reverse the order of
fctx_destroy() and empty_bucket().
- Don't resend queries if fetches have been canceled.
- It's possible for fctx_doshutdown() to run before a TCP connection has
completed. if the query is not on the queries list, then it is not
canceled, but the adbaddrinfo is freed. when tcp_connected() runs
later, the query is in an inconstent state. to fix this, we add the
query to queries before running dns_dispatch_connect(), instead of in
the connect callback.
- Combined the five fctx_cleanup* functions into a single one.
- Added comments and changed some names to make this code easier to
understand.
2021-10-02 11:43:59 -07:00
..
2021-10-02 11:39:56 -07:00
2021-08-19 18:17:08 +10:00
2021-10-02 11:39:56 -07:00
2021-05-24 20:44:54 +02:00
2021-10-02 11:39:56 -07:00
2021-07-06 05:33:48 +00:00
2020-09-14 16:20:40 -07:00
2021-09-16 00:19:02 -07:00
2020-09-14 16:20:40 -07:00
2021-09-30 19:14:12 +00:00
2021-10-02 11:39:56 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-09-17 07:09:50 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-10-02 11:43:52 -07:00
2021-02-03 12:22:33 +11:00
2020-11-25 08:25:29 +11:00
2021-09-17 07:09:50 +02:00
2021-09-09 15:35:39 +02:00
2021-02-22 12:22:31 +11:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2021-09-09 15:35:39 +02:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-10-28 15:48:58 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2021-08-18 13:49:48 +10:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-02-16 01:04:46 +00:00
2021-07-06 05:33:48 +00:00
2021-09-09 15:35:39 +02:00
2021-01-29 12:07:38 +01:00
2020-09-14 16:20:40 -07:00
2021-07-23 07:52:44 +10:00
2021-02-23 09:16:48 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-08-23 09:53:51 +02:00
2021-02-03 12:22:33 +11:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-10-02 11:39:56 -07:00
2021-10-02 11:39:56 -07:00
2021-09-17 07:09:50 +02:00
2021-09-17 07:09:50 +02:00
2021-07-09 15:58:02 +02:00
2021-07-06 05:33:48 +00:00
2020-09-14 16:20:40 -07:00
2021-05-22 00:37:27 -07:00
2020-09-14 16:20:40 -07:00
2021-05-22 00:37:27 -07:00
2021-07-06 05:33:48 +00:00
2021-09-09 15:35:39 +02:00
2021-01-26 15:01:26 +01:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2021-05-22 00:37:27 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-09-17 07:09:50 +02:00
2021-09-17 07:09:50 +02:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2021-08-18 13:49:48 +10:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-08-18 13:49:48 +10:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-10-02 11:39:56 -07:00
2021-10-02 11:43:59 -07:00
2021-08-18 13:49:48 +10:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2021-05-24 20:44:54 +02:00
2021-09-17 07:09:50 +02:00
2021-09-17 07:09:50 +02:00
2020-09-14 16:20:40 -07:00
2021-06-09 14:35:14 +02:00
2020-09-14 16:20:40 -07:00
2021-08-24 09:07:15 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2021-03-05 13:29:26 +02:00
2021-09-09 15:35:39 +02:00
2020-09-14 16:20:40 -07:00
2021-09-09 15:35:39 +02:00
2020-09-14 16:20:40 -07:00
2021-07-06 05:33:48 +00:00
2021-10-02 11:39:56 -07:00
2021-10-02 11:39:56 -07:00
2021-10-02 11:39:56 -07:00
2020-11-26 10:43:59 +01:00
2021-10-02 11:39:56 -07:00
2020-09-14 16:20:40 -07:00
2021-08-25 15:10:27 -07:00
2021-10-02 11:39:56 -07:00