Michael Catanzaro
dbe5359084
proxyaddressenumerator: set error parameter more thoughtfully
...
It doesn't make sense for a proxy resolver to return NULL without an
error on the first call. Whereas a DNS resolver would do this to
indicate that a query completed successfully but found no results, a
proxy resolver should return "direct://" instead. Therefore, if we are
going to return NULL, we ought to have an error as well. Let's make sure
this actually happens by adding some fallback errors just in case
GProxyResolver feeds us weird results.
Additionally, we should not return any errors except
G_IO_ERROR_CANCELLED after the very first iteration. This is an API
contract of GSocketAddressEnumerator. Let's add some checks to ensure
this.
Note that we have inadequate test coverage for GProxyAddressEnumerator.
It's tested here only via GSocketClient. We could do a bit better by
testing it directly as well. For example, I've added tests to see what
happens when GProxyResolver returns both a valid and an invalid URI, but
it's not so interesting here because GSocketClient always uses the valid
result and ignores the error from GProxyAddressEnumerator.
(Backport to 2.72: Dropped new translatable strings in error messages to
avoid additional translation work on a stable branch. The error messages
are unlikely to be seen by users.)
Fixes #2597
2022-06-28 11:38:29 +01:00
..
2022-01-07 11:27:56 -06:00
2017-07-13 19:03:39 -04:00
2021-01-09 15:39:09 +01:00
2022-01-22 01:30:16 +00:00
2022-01-26 10:14:02 +01:00
2017-10-11 10:22:23 +01:00
2021-01-25 15:00:12 +01:00
2018-10-23 09:45:12 -04:00
2020-11-15 17:34:27 +01:00
2019-03-12 21:53:43 +03:00
2019-02-20 10:38:29 +00:00
2022-03-17 16:28:41 +00:00
2018-12-17 17:16:03 +00:00
2018-12-17 17:16:03 +00:00
2018-12-17 17:16:03 +00:00
2018-12-17 17:16:04 +00:00
2020-06-10 09:48:02 +01:00
2019-06-28 13:05:07 +01:00
2021-05-13 22:16:27 +01:00
2022-03-18 00:16:14 +04:00
2014-09-09 14:11:38 -04:00
2021-05-13 22:16:27 +01:00
2021-07-23 22:21:23 +02:00
2019-02-13 08:49:42 +00:00
2021-04-29 12:40:05 +02:00
2021-05-13 22:16:27 +01:00
2021-02-01 11:19:59 +00:00
2022-03-18 00:20:14 +04:00
2022-03-09 11:41:30 +04:00
2021-04-05 12:03:51 +02:00
2022-03-14 17:59:37 +00:00
2022-01-26 18:19:44 +04:00
2021-12-14 14:43:03 +01:00
2018-02-16 17:38:26 +00:00
2018-09-04 20:24:25 +02:00
2021-04-29 12:40:05 +02:00
2019-03-12 21:53:43 +03:00
2022-02-14 14:42:17 +00:00
2019-10-26 14:06:31 +01:00
2021-12-14 11:46:57 +00:00
2021-05-13 20:16:46 +00:00
2020-11-14 19:03:18 +00:00
2020-01-07 11:20:45 +00:00
2021-05-06 22:54:53 +02:00
2022-02-07 14:04:04 +00:00
2018-04-26 15:19:17 +01:00
2021-05-13 20:16:46 +00:00
2021-05-13 22:16:27 +01:00
2022-02-20 10:43:26 +00:00
2022-04-25 14:29:52 +01:00
2021-04-08 13:24:54 +02:00
2018-09-13 13:16:40 +02:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2022-03-04 18:16:12 +00:00
2019-03-12 21:54:47 +03:00
2020-06-12 15:01:08 +01:00
2022-03-11 23:47:22 +00:00
2017-05-29 19:53:34 +02:00
2020-10-01 16:32:50 +01:00
2017-05-29 19:53:34 +02:00
2022-03-12 00:03:05 +00:00
2020-10-01 16:32:50 +01:00
2021-06-15 14:33:14 +01:00
2022-03-04 16:21:55 +00:00
2021-05-13 20:16:46 +00:00
2017-05-29 19:53:34 +02:00
2021-04-15 10:19:29 +02:00
2018-10-04 10:45:45 +02:00
2020-10-01 16:32:50 +01:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2017-04-10 10:38:31 +01:00
2021-04-23 10:43:05 +02:00
2021-04-23 10:43:05 +02:00
2018-07-09 13:28:02 +02:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2021-05-27 10:16:52 +02:00
2022-03-17 16:28:41 +00:00
2017-05-29 19:53:34 +02:00
2020-06-10 09:48:02 +01:00
2022-04-05 15:51:20 +01:00
2021-08-17 13:25:55 +00:00
2022-03-11 23:56:18 +00:00
2020-11-20 14:40:19 +00:00
2021-04-08 13:24:54 +02:00
2021-04-08 13:24:54 +02:00
2020-06-12 15:01:08 +01:00
2018-11-10 03:53:32 +00:00
2017-05-29 19:53:34 +02:00
2021-11-16 22:47:15 +00:00
2022-01-26 13:04:49 +00:00
2021-02-11 16:12:40 +00:00
2019-12-17 20:56:49 +08:00
2017-05-29 19:53:34 +02:00
2022-03-09 14:21:22 +00:00
2019-12-17 20:56:49 +08:00
2020-10-01 16:32:50 +01:00
2020-02-24 07:46:22 +00:00
2021-04-15 10:19:29 +02:00
2022-03-04 19:53:04 +00:00
2020-11-17 15:50:07 +00:00
2020-11-17 15:50:07 +00:00
2021-11-17 14:40:38 +01:00
2019-07-15 11:01:04 +00:00
2021-05-13 22:16:27 +01:00
2021-02-01 11:19:59 +00:00
2021-04-23 10:43:05 +02:00
2017-05-29 19:53:34 +02:00
2021-08-02 19:26:38 +02:00
2019-01-15 15:11:43 +00:00
2022-03-17 16:28:41 +00:00
2020-10-26 14:18:06 +00:00
2021-12-14 13:47:31 -06:00
2021-12-14 13:47:31 -06:00
2021-06-15 16:06:52 -05:00
2021-06-15 16:06:52 -05:00
2020-06-12 15:01:08 +01:00
2017-05-29 19:53:34 +02:00
2021-05-13 20:16:46 +00:00
2016-07-11 17:42:41 -04:00
2015-02-17 16:27:46 -05:00
2021-05-13 20:16:46 +00:00
2020-06-12 15:01:08 +01:00
2021-09-06 14:46:15 +02:00
2021-09-06 14:46:15 +02:00
2022-01-25 16:31:10 +04:00
2021-09-21 10:40:14 +00:00
2022-03-22 12:40:12 +00:00
2021-04-15 10:19:29 +02:00
2022-02-22 11:25:21 +00:00
2018-12-11 16:09:29 -05:00
2018-06-21 15:32:04 +02:00
2022-02-22 11:25:21 +00:00
2021-05-13 22:16:27 +01:00
2018-04-10 10:35:45 +01:00
2021-06-04 12:09:24 +00:00
2019-12-17 20:59:22 +08:00
2018-06-22 22:02:31 +03:00
2018-06-22 22:02:31 +03:00
2021-03-10 18:04:17 +00:00
2021-08-13 01:32:31 +02:00
2021-09-06 18:57:06 +01:00
2021-07-28 15:56:02 +02:00
2022-06-28 11:38:29 +01:00
2020-11-25 11:34:05 +00:00
2021-04-29 12:40:05 +02:00
2022-03-22 12:40:12 +00:00
2022-03-22 12:40:12 +00:00
2020-06-12 15:01:08 +01:00
2022-02-20 10:43:26 +00:00
2021-05-13 20:16:46 +00:00
2017-05-29 19:53:34 +02:00
2018-06-29 12:13:32 +01:00
2021-05-13 22:16:27 +01:00
2018-12-11 16:12:48 -05:00
2015-10-13 15:42:14 +01:00
2021-05-13 12:57:14 +02:00
2021-04-23 10:43:05 +02:00
2021-05-13 22:16:27 +01:00
2021-05-13 12:57:14 +02:00
2021-05-13 22:16:27 +01:00
2022-04-25 14:29:52 +01:00
2020-11-17 15:50:07 +00:00
2017-05-29 19:53:34 +02:00
2020-11-17 15:50:07 +00:00
2020-11-20 14:40:19 +00:00
2019-01-10 13:50:26 -05:00
2020-06-12 15:01:08 +01:00
2018-12-19 16:43:21 +00:00
2019-09-02 20:47:20 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-11-29 17:50:27 +00:00
2017-05-29 19:53:34 +02:00
2020-11-14 19:03:18 +00:00
2022-05-31 13:22:02 +01:00
2020-08-17 12:33:05 +01:00
2021-01-20 12:51:41 +00:00
2022-02-20 10:43:26 +00:00
2018-09-03 13:55:57 +10:00
2021-02-08 10:22:48 +00:00
2021-08-19 09:41:08 +01:00
2018-06-20 12:16:34 +01:00
2021-04-29 12:39:51 +02:00
2016-06-28 15:57:49 +02:00
2020-06-10 09:48:02 +01:00
2020-06-10 09:48:02 +01:00
2014-08-02 12:41:14 +00:00