HoneyryderChuck 3852e2cdf4 native dns: do not write query to buffer if waiting on a previous reply
in a normal situation this would not happen, as events on a resolver would be dealt one at a time, but in a fiber-scheduler environment like async, the first query could be buffered in the 1st fiber switch, the second could then be enqueued on 2nd, then flush buffer and fiber switch on read, and a third query would then enter a corrupt state where, due to the buffer having been flushed on the 2nd fiber, write the 3rd query before receiving the second one, and messing up the pending query bookkeeping, making the fiber then block (due to DNS query never returning back) and expose that as an empty interest registration from some other connection on the selector

this is fixed by using @timer as a proxy for knowing that a given DNS query has been flushed but is still waiting on a response (or an eventual retry)
2025-08-19 18:13:56 +01:00
..
2024-06-11 18:21:22 +01:00
2025-08-08 17:06:03 +01:00
2025-04-12 23:29:08 +01:00
2025-04-13 01:27:05 +01:00
2025-04-04 09:25:53 +01:00
2025-05-13 16:21:06 +01:00
2025-04-12 23:29:08 +01:00
2025-04-06 21:54:03 +01:00
2024-06-11 18:21:22 +01:00