Re: Proxy support over AF_UNIX
- From: Dan Winship <danw gnome org>
- To: mathstuf gmail com
- Cc: libsoup-list gnome org
- Subject: Re: Proxy support over AF_UNIX
- Date: Sat, 26 Jan 2013 15:14:54 -0500
On 01/26/2013 01:47 PM, Ben Boeckel wrote:
> Is there some other approach I'm missing that would be better?
Yes. I started writing a response to your email yesterday, but it was
starting to get really complicated, so then I ended up just starting to
write the code instead, and was going to reply when I finished, but it's
still not done yet...
Anyway, proxy handling in libsoup is messy right now, because there are
two different ways of resolving proxies (SoupProxyURIResolver and
GProxyResolver), and some functionality is only available one way, and
some the other way.
But GProxyResolver is the way things should work in the future, and I've
been meaning to fix things up so that that's possible. (Particularly,
making it so that libsoup can override the proxy resolver that
GSocketClient uses.) So that's what I'm working on now.
So, once all this stuff lands (soon), the only part that you'll need to
implement yourself is a GProxy implementation that does your
connect-via-unix-socket thing. Then you'd create a GSimpleProxyResolver,
tell it to always return "unix:/my/socket/path" (or whatever kind of URI
you use) as the proxy URI, and then tell the SoupSession to use that
proxy resolver. And then it should just work...
-- Dan
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]