gresolver: Add GResolver:timeout property

Without a timeout, some lookup requests can go on forever, typically due
to bugs in underlying systems.

This can have particularly significant effects on the Happy Eyeballs
algorithm in `GSocketClient`, which relies on multiple name lookups as
its first step.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2866
This commit is contained in:
Philip Withnall
2023-03-29 17:13:49 +01:00
parent c256af1c2d
commit bf92bae481
3 changed files with 121 additions and 2 deletions

View File

@@ -1934,6 +1934,8 @@ g_resolver_lookup_service
g_resolver_lookup_service_async
g_resolver_lookup_service_finish
g_resolver_free_targets
g_resolver_get_timeout
g_resolver_set_timeout
<SUBSECTION>
GResolverRecordType
g_resolver_lookup_records