Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Added do_refcounting_test that checks that streams do not leak any
reference when a message is cancelled just before starting to read.
This test also need a new cancel flag called
SOUP_TEST_REQUEST_CANCEL_AFTER_SEND_FINISH.
https://bugzilla.gnome.org/show_bug.cgi?id=682527
|
|
We were assuming that if the SOUP_TEST_REQUEST_CANCEL_SOON flag was not
present then we wanted an immediate cancelation. That worked but now we need
to add it to support more cancellation types.
https://bugzilla.gnome.org/show_bug.cgi?id=682527
|
|
Fixed a reference cycle between SoupCacheInputStream and a
GTask. This reference cycle was preventing the input stream from
being freed when the SoupMessage was cancelled before the stream
was completely read. Furthermore the SoupCache was not able to
complete the pending request because the SoupCacheInputStream was
not aware of the message cancellation and remained waiting forever.
In order to remove the cycle
soup_cache_input_stream_cache(_finish) were removed and the
caching operation finalization is now reported via a signal.
SoupCacheInputStream also implements close_fn which properly
finalizes any pending caching operation.
https://bugzilla.gnome.org/show_bug.cgi?id=682527
|
|
Remove rules that automake can figure out itself. Run the tests in
alphabetical order. Run "make kill-httpd" at the end of "make check",
in case the last httpd-using test crashed.
|
|
SoupMessageQueueItem's proxy_addr and proxy_uri fields were no longer
being used, but they were still there, and SoupSession was trying to
use item->proxy_uri to provide clarifying information on
SOUP_STATUS_CANT_RESOLVE_PROXY / SOUP_STATUS_CANT_CONNECT_PROXY.
Remove the unused fields, and fix SoupSession to get the proxy name
from the SoupConnection instead.
https://bugzilla.gnome.org/show_bug.cgi?id=680273
|
|
The GSocketClient::event signal gets proxied from GSocketClient to
SoupSocket to SoupConnection to SoupSession to SoupMessage (!) via
signal handlers that used to have "proxy" in their names. But that
made it sound like they had something to do with network proxies. So
rename them all (to "re_emit").
https://bugzilla.gnome.org/show_bug.cgi?id=680273
|
|
|
|
Added cancellation tests for both fresh and under revalidation resources.
These tests ensure that cancellations happen flawlessly and that any
potential revalidation process is also cancelled.
https://bugzilla.gnome.org/show_bug.cgi?id=692310
|
|
The function gets a new parametter used to enable request cancellation for
both sync and async sessions. The cancellation could be performed by either
using the GCancellable or by directly cancelling the SoupMessage.
Also the GMainContext used to simulate sync operations with async ones will
now try to execute all its pending events before quiting the main loop.
https://bugzilla.gnome.org/show_bug.cgi?id=692310
|
|
SoupSession will now properly handle cancellations (either with
soup_session_cancel_message or g_cancellable_cancel) of resources returned
by the cache whether they're fresh or need a revalidation.
http://bugzilla.gnome.org/show_bug.cgi?id=692310
|
|
|
|
If the first attempt at NTLM auth fails, let the auth manager emit a
"retrying" authenticate as well, just like normal auths do.
https://bugzilla.gnome.org/show_bug.cgi?id=693222
|
|
The add-feature-by-type and remove-feature-by-type properties were
only accepting SoupSessionFeature types, so you couldn't use it for
things like request types, auth types, etc.
|
|
Setting "IF_HAVE_PHP" to "#" actually sets it to "", because the "#"
is treated as the start of a comment. We have to set it to "\#" if we
want to cause the "#" to actually get substituted into httpd.conf
https://bugzilla.gnome.org/show_bug.cgi?id=693311
|
|
It will be proxied to the SoupConnection and then to SoupSocket,
allowing the user to specify a local address to bind the local socket.
|
|
It will be proxied to the SoupSocket upon its creation.
|
|
This allows binding the client connection to a specific local address.
|
|
Thus avoiding duplication of code in sync and async functions.
|
|
|
|
|
|
Even if the caller does not specify a GCancellable the GTask must use the
one that comes with the item by default.
This also sets check_cancellable() to FALSE in the session's GTask in order
not to override error messages previously set on the GTask in case of
cancellations.
https://bugzilla.gnome.org/show_bug.cgi?id=692310
|
|
|
|
|
|
This broke CalDAV in evolution. I'm not sure exactly why, but if it
broke that, it might break other things too, so let's just revert
this.
This reverts commit 38901ca5e684a8fac75e6ff740d45c82dd44181a.
https://bugzilla.gnome.org/show_bug.cgi?id=692149
|
|
|
|
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
|
|
We must update the priv->eof field in the skip() operation as we do in
read(). This bug was causing redirects not to finish because the
SoupBodyInputStream was creating a pollable source that will never issue
anything instead of a plain timeout source.
https://bugzilla.gnome.org/show_bug.cgi?id=692026
|
|
If g_tls_file_database_new() failed for any reason but
G_TLS_ERROR_UNAVAILABLE, we don't create a fallback DB and so tlsdb stays
NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=691930
|
|
|
|
|
|
|
|
SoupRequestHTTP is now implemented in terms of SoupSession SoupMessage
operations, so we might as well just expose those directly, for people
who want streaming APIs, but not SoupRequest.
|
|
Remove some includes that I had commented out to see if they were
still needed, but then forgot to actually remove when it turned out
they weren't.
|
|
All supported HTTP auth methods use both username and password, so
assume a password of "" if none is given
|
|
Calling soup_auth_authenticate() on an already-authenticated
SoupAuthDigest would leak the old username and hashed password.
https://bugzilla.gnome.org/show_bug.cgi?id=690142
|
|
|
|
We need to signal conn_cond when removing an item from the queue,
since flush_queue() expects that... (and also, since in some cases,
removing a message from the queue will allow another one to start).
https://bugzilla.gnome.org/show_bug.cgi?id=691399
|
|
|
|
The po/Makefile.in.inis generated by intltoolize
|
|
|
|
SoupMessage:tls-certificate and SoupMessage:tls-errors were only
getting set for successful https connections. It is useful to have
them be set on failed ones as well. Fix that, and make ssl-test test
it.
https://bugzilla.gnome.org/show_bug.cgi?id=690176
|
|
Disconnecting clears priv->sock, and in some cases, the caller may
want to look at that after the failed connection. So switch this back
to having the session do the disconnecting itself (which is simpler
now due to various SoupSession rewrites), and remove one inconsistent
case where the connection was disconnecting itself before.
This reverts commit 21d707d66460233596a04f6dc99c945d2dbc3085.
|
|
|
|
Split the "this message is likely to be requeued" logic into a single
function that the sync and async codepaths can share, and fix it to
not think that SOUP_MESSAGE_NO_REDIRECT messages will be redirected,
or that messages that disable SOUP_TYPE_AUTH_MANAGER will be
authenticated.
|
|
GNOME_MAINTAINER_MODE_DEFINES apparently sets
LIBSOUP_DISABLE_DEPRECATED, which is now causing various jhbuild
modules to break. "Fix" this by renaming the define (which is only
still there because gtk-doc complains if it's not). The *right* way to
get deprecation warnings/errors now is to define
SOUP_VERSION_MIN_REQUIRED.
|
|
Very belatedly, make SoupAuthManager thread-safe.
It also ensures that any SoupAuth that it manages is only manipulated
from one thread at a time.
|
|
Add soup_auth_manager_use_auth(), for "preloading" authentication, and
make the old automatically-request-NTLM behavior happen only for
the legacy SoupSession subclasses.
|