summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-182.41.90upstream/2.41.90LIBSOUP_2_41_902.41.90Dan Winship2-1/+31
2013-02-18Updated Serbian translationМирослав Николић2-32/+36
2013-02-18Updated Polish translationPiotr Drąg1-16/+20
2013-02-18cache-test: added a new cancellation testSergio Villar Senin3-1/+73
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
2013-02-18test-utils: Added SOUP_TEST_REQUEST_CANCEL_IMMEDIATE flagSergio Villar Senin4-7/+14
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
2013-02-18soup-cache-input-stream: fixed a reference cycleSergio Villar Senin3-78/+87
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
2013-02-16tests: simplify and improve "make check"Dan Winship1-89/+31
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.
2013-02-16SoupSession: remove some dead code, fix proxy error messagesDan Winship3-32/+14
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
2013-02-16Internal renamings for clarityDan Winship3-18/+18
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
2013-02-15Updated Malayalam LocalizationAnish A1-23/+44
2013-02-12cache-test: added cancellation testsSergio Villar Senin1-0/+125
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
2013-02-12test-utils: add cancellation support to soup_test_request_sendSergio Villar Senin10-46/+120
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
2013-02-12soup-session: handle cancellation of SoupCache resourcesSergio Villar Senin3-24/+85
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
2013-02-09Updated slovak translationPavol Klačanský1-15/+36
2013-02-07SoupAuthNTLM: fix to do a "retrying" authenticateDan Winship2-14/+153
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
2013-02-07SoupSession: fix a bug with the add-feature-by-type propertyDan Winship1-2/+2
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.
2013-02-07tests: fix non-php apache tests to still work without phpDan Winship1-1/+1
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
2013-02-06SoupSession: added a new construction-time property "local-address"Jonh Wendell2-0/+38
It will be proxied to the SoupConnection and then to SoupSocket, allowing the user to specify a local address to bind the local socket.
2013-02-06SoupConnection: added a new construction-time property "local-address"Jonh Wendell2-0/+19
It will be proxied to the SoupSocket upon its creation.
2013-02-06SoupSocket: Use the local socket, when available, even on client side.Jonh Wendell1-0/+3
This allows binding the client connection to a specific local address.
2013-02-06SoupSocket: Move the creation of socket clients to a single placeJonh Wendell1-18/+20
Thus avoiding duplication of code in sync and async functions.
2013-02-052.41.5upstream/2.41.5LIBSOUP_2_41_52.41.5Dan Winship2-1/+18
2013-02-04Updated Traditional Chinese translation(Hong Kong and Taiwan)Chao-Hsiung Liao2-18/+68
2013-02-04soup-session: use SoupMessageQueueItem's cancellable for the GTaskSergio Villar Senin1-4/+12
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
2013-02-03[l10n] Updated German translationAndre Jonas1-17/+39
2013-01-24[l10n] Updated Italian translation.Milo Casagrande1-16/+37
2013-01-21Revert "SoupURI: replace NULL password with "" on http"Dan Winship2-8/+6
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
2013-01-21Updated Norwegian bokmål translationKjartan Maraas1-16/+37
2013-01-20Updated Uyghur translationGheyret Kenji1-16/+39
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-01-18soup-body-input-stream: update priv->eof when skippingSergio Villar Senin1-1/+3
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
2013-01-17set_ssl_ca_file: don't try unreffing tlsdb if it's NULLGuillaume Desmottes1-1/+2
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
2013-01-17Updated Serbian translationМирослав Николић2-18/+64
2013-01-15Updated Belarusian translation.Ihar Hrachyshka1-7/+28
2013-01-142.41.4LIBSOUP_2_41_42.41.4Dan Winship2-1/+61
2013-01-14soup-session: add SoupMessage-based streaming APIsDan Winship5-17/+130
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.
2013-01-12soup-message: belated #include cleanupDan Winship1-3/+0
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.
2013-01-12SoupURI: replace NULL password with "" on httpDan Winship2-6/+8
All supported HTTP auth methods use both username and password, so assume a password of "" if none is given
2013-01-12soup-auth-digest: fix a leak on re-authDan Winship1-0/+3
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
2013-01-12Updated Bulgarian translationAlexander Shopov1-14/+35
2013-01-09soup-session: fix a deadlock when aborting a SoupSessionSyncDan Winship1-0/+1
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
2013-01-09Add explicit soup-version.h include into soup.hMilan Crha1-0/+1
2013-01-08build: Do not use AM_GLIB_GNU_GETTEXTJavier2-3/+2
The po/Makefile.in.inis generated by intltoolize
2013-01-08autogen.sh: Use autoreconf instead gnome-autogenJavier1-15/+27
2013-01-07soup_message_get_https_status: provide info for failed attempts tooDan Winship3-8/+14
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
2013-01-07Revert "SoupConnection: disconnect on failed connections/tunnels"Dan Winship2-19/+5
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.
2013-01-06Fix previous commitDan Winship1-2/+5
2013-01-05soup-session: fix up the SoupRequest requeuing logicDan Winship1-8/+16
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.
2013-01-04Rename LIBSOUP_DISABLE_DEPRECATED to SOUP_DISABLE_DEPRECATEDDan Winship10-11/+11
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.
2013-01-02soup-auth-manager: make this thread-safeDan Winship1-3/+29
Very belatedly, make SoupAuthManager thread-safe. It also ensures that any SoupAuth that it manages is only manipulated from one thread at a time.
2013-01-02soup-auth-manager: add soup_auth_manager_use_auth()Dan Winship7-10/+105
Add soup_auth_manager_use_auth(), for "preloading" authentication, and make the old automatically-request-NTLM behavior happen only for the legacy SoupSession subclasses.