Aram Sargsyan
643abfbba7
Synchronize dns_request_createraw() and dns_request_create() UDP timeout
...
The dns_request_createraw() function, unlike dns_request_create(), when
calculating the UDP timeout value, doesn't check that 'udpretries' is
not zero, and that is the more logical behavior, because the calculation
formula uses division to 'udpretries + 1', where '1' is the first try.
Change the dns_request_create() function to remove the 'udpretries != 0'
condition.
Add a 'REQUIRE(udpretries != UINT_MAX)' check to protect from a division
by zero.
Make the 'request->udpcount' field to represent the number of tries,
instead of the number of retries.
2023-04-03 15:21:43 +00:00
..
2023-04-03 15:10:47 +00:00
2023-04-03 10:25:56 +00:00
2023-02-15 09:30:04 +01:00
2023-03-31 13:32:56 +02:00
2023-03-31 15:02:06 +02:00
2023-02-16 18:35:32 +01:00
2023-02-15 16:44:47 +00:00
2023-02-15 16:44:47 +00:00
2023-03-31 15:02:06 +02:00
2023-03-28 12:38:27 -07:00
2023-02-07 23:48:22 -08:00
2022-11-29 08:54:34 +01:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2023-03-31 15:02:06 +02:00
2023-02-15 09:30:04 +01:00
2022-04-04 19:27:00 +02:00
2023-03-28 15:44:31 -07:00
2023-03-31 13:32:56 +02:00
2023-04-03 10:25:56 +00:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2023-04-03 14:09:13 +02:00
2023-04-03 12:06:04 +10:00
2023-04-03 12:06:04 +10:00
2023-03-31 12:52:59 +00:00
2023-03-08 08:36:25 +01:00
2023-02-16 17:51:55 +01:00
2023-02-15 16:44:47 +00:00
2022-01-11 09:05:02 +01:00
2023-02-15 09:30:04 +01:00
2023-02-06 13:26:36 +00:00
2022-01-11 09:05:02 +01:00
2023-02-15 16:44:47 +00:00
2023-02-15 16:44:47 +00:00
2023-04-03 12:44:27 +10:00
2023-01-09 12:15:21 -08:00
2022-01-11 09:05:02 +01:00
2023-02-15 16:44:47 +00:00
2023-02-28 09:38:17 +01:00
2022-11-29 08:54:34 +01:00
2022-01-11 09:05:02 +01:00
2023-02-15 16:44:47 +00:00
2023-02-28 11:44:15 +01:00
2023-03-23 12:57:01 -07:00
2023-03-08 08:36:25 +01:00
2023-03-31 13:32:56 +02:00
2023-03-31 13:32:56 +02:00
2023-02-15 16:44:47 +00:00
2023-03-31 12:43:30 +00:00
2023-02-28 11:44:15 +01:00
2023-02-06 13:26:36 +00:00
2023-03-08 08:36:25 +01:00
2023-03-31 13:32:56 +02:00
2023-04-03 12:06:04 +10:00
2023-03-08 08:36:25 +01:00
2023-03-08 08:36:25 +01:00
2023-03-08 13:50:46 +01:00
2023-04-03 12:06:04 +10:00
2023-03-08 13:50:46 +01:00
2022-11-29 08:54:34 +01:00
2023-01-09 12:15:21 -08:00
2023-02-15 16:44:47 +00:00
2023-04-03 15:10:47 +00:00
2023-04-03 15:10:47 +00:00
2023-03-31 12:43:30 +00:00
2023-03-31 15:02:06 +02:00
2022-05-03 00:41:42 +01:00
2023-03-08 08:36:25 +01:00
2023-03-08 21:47:14 +00:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2022-11-29 08:54:34 +01:00
2023-01-09 12:15:21 -08:00
2023-04-03 15:21:43 +00:00
2023-02-24 09:38:59 +00:00
2023-03-31 15:02:06 +02:00
2023-02-06 13:22:30 +00:00
2023-03-31 13:32:56 +02:00
2023-03-31 15:02:06 +02:00
2022-12-07 22:20:02 +00:00
2023-03-31 12:43:30 +00:00
2023-02-28 11:44:15 +01:00
2022-03-25 08:33:43 +01:00
2023-02-15 16:44:47 +00:00
2023-02-15 16:44:47 +00:00
2023-04-03 12:08:05 +01:00
2022-05-28 14:53:02 -07:00
2023-03-31 13:33:16 +02:00
2023-03-31 13:32:56 +02:00
2023-02-15 09:30:04 +01:00
2022-01-11 09:05:02 +01:00
2023-04-03 10:25:56 +00:00
2023-02-15 16:44:47 +00:00
2023-03-31 13:32:56 +02:00
2023-03-31 15:02:06 +02:00
2023-04-03 10:25:56 +00:00
2023-03-31 15:02:06 +02:00
2022-01-11 09:05:02 +01:00
2023-04-03 14:01:22 +00:00
2022-11-29 08:54:34 +01:00
2023-04-03 10:25:56 +00:00
2023-02-16 18:35:32 +01:00