diff options
author | Dan Winship <danw@src.gnome.org> | 2008-10-03 21:01:54 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-10-03 21:01:54 +0000 |
commit | d0f981d4761fb088ebbcbc2a1c387c209ce0c243 (patch) | |
tree | b9ffe58b4e51ec09bbd3ffabbc1d09d088d03405 /libsoup/soup-message-private.h | |
parent | e67b923bffa8fe1d7b6b876e77cf588fa43dd18e (diff) | |
download | libsoup-d0f981d4761fb088ebbcbc2a1c387c209ce0c243.tar.gz |
Change the SoupURI properties to SoupAddress properties.
* libsoup/soup-connection.c: Change the SoupURI properties to
SoupAddress properties.
* libsoup/soup-address.c (soup_address_resolve_async)
(soup_address_resolve_sync): Redo slightly so that multiple
simultaneous attempts to resolve the same address won't cause
problems.
(soup_address_hash_by_name, soup_address_equal_by_name):
(soup_address_hash_by_ip, soup_address_equal_by_ip): methods to
hash addresses by name or IP address
* libsoup/soup-message.c (soup_message_get_address): gets a
SoupAddress corresponding to the message's URI
* libsoup/soup-auth-manager.c (SoupAuthHost): hash hosts by
soup_address_hash_by_name() rather than by URI.
* libsoup/soup-session.c (soup_session_get_connection): pass
addresses to soup_connection_new(), not URIs.
(SoupSessionHost): hash hosts by soup_address_hash_by_ip() rather
than by URI. This requires that the addresses will have already
been resolved by the SoupSession subclasses before calling
soup_session_get_connection(), but also means that now requests
made to different virtual hosts on the same IP address can share a
connection.
* libsoup/soup-message-queue.c (SoupMessageQueueItem): add
address-resolving state
* libsoup/soup-session-sync.c (process_queue_item): resolve the
message's address before getting a connection
* libsoup/soup-session-async.c (run_queue, resolve_msg_addr)
(resolved_msg_addr): resolve the message's address before getting
a connection
(request_restarted): if the message gets requeued to a different
host, we'll need to re-resolve the address.
* libsoup/soup-uri.c (soup_uri_copy_root, soup_uri_host_hash)
(soup_uri_host_equal): No longer needed
* libsoup/soup-dns.c (do_async_callback): disconnect from the
cancellable before invoking the callback
* tests/proxy-test.c (tests): fix the 403 example; hostnames are
resolved by the session now, even when sending to a proxy, so we
need to use a hostname that actually exists
svn path=/trunk/; revision=1179
Diffstat (limited to 'libsoup/soup-message-private.h')
-rw-r--r-- | libsoup/soup-message-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-message-private.h b/libsoup/soup-message-private.h index 8392c502..f47251a7 100644 --- a/libsoup/soup-message-private.h +++ b/libsoup/soup-message-private.h @@ -32,6 +32,7 @@ typedef struct { SoupHTTPVersion http_version, orig_http_version; SoupURI *uri; + SoupAddress *addr; SoupAuth *auth, *proxy_auth; } SoupMessagePrivate; |