Cannot use proxy-resolver on a GSocketConnectable with GNetworkMonitor
@mcrha
Submitted by Milan Crha Link to original bug (#792153)
Description
From bug #791334 comment 3:
Looks like we might need to add a GNetworkMonitorBase:proxy-resolver property, which sets that proxy resolver on the proxy enumerator coming from g_socket_connectable_proxy_enumerate() in can_reach().
and bug #791334 comment 6:
Milan, if you want to come up with a patch to fix your other issue about custom proxy resolvers not being usable with GNetworkMonitor, please file a separate bug report and attach it there (let's keep one bug report per issue). I'll be happy to review it. Thanks.
I do not have any patch for it, but I know that using proxy-resolver directly on a GNetworkMonitor is a wrong idea, because the default GNetworkMonitor instance can be used in multiple threads at the same time, while each thread (thus also GSocketConnectable) can require different (or no) proxy.
That means that the right change is to allow proxy-resolver on the GSocketConnectable, rather than on GNetworkMonitor.
Version: 2.54.x