[Spice-devel] [PATCH spice-gtk 0/6] Add simple HTTP CONNECT proxy support

Marc-André Lureau marcandre.lureau at gmail.com
Fri Aug 24 06:58:13 PDT 2012


Hi,

The following series allows to connect to a Spice server via a HTTP
proxy, using the CONNECT method. It can be tested with a Squid proxy,
(which allows CONNECT on various ports) by setting the environment
variable SPICE_PROXY=proxy_host:proxy_port (it doesn't support any
other parameters atm, such as username/password)

The implementation is realized using GSocketClient & GProxy. The HTTP
proxy is not part of GLib yet, but a fairly complete implementation
exists in the Wocky project (from Telepathy).

GLib proxy handling is relatively recent, and requires v2.26. We may
want to make its uage optionnal to still support older distributions.
This is left as an exercice for the future :)

Using GSocketClient & GProxy allows to leverage existing and future
proxy from GLib (currently various socks version supported).

Marc-André Lureau (6):
  Add wocky HTTP proxy
  spice-channel: plug a small memory leak
  spice-channel: remove unnecessary g_socket_close()
  session: allow to connect via HTTP CONNECT proxy
  Add SpiceProxy object
  spice-session: make spice_session_channel_open_host() async again

 configure.ac           |   2 +-
 gtk/Makefile.am        |   4 +
 gtk/spice-channel.c    |   3 +-
 gtk/spice-proxy.c      | 236 +++++++++++++++++++++++++++
 gtk/spice-proxy.h      |  59 +++++++
 gtk/spice-session.c    | 186 ++++++++++++++-------
 gtk/wocky-http-proxy.c | 429 +++++++++++++++++++++++++++++++++++++++++++++++++
 gtk/wocky-http-proxy.h |  42 +++++
 8 files changed, 904 insertions(+), 57 deletions(-)
 create mode 100644 gtk/spice-proxy.c
 create mode 100644 gtk/spice-proxy.h
 create mode 100644 gtk/wocky-http-proxy.c
 create mode 100644 gtk/wocky-http-proxy.h

-- 
1.7.11.4



More information about the Spice-devel mailing list