platform/upstream/libsoup.git
11 years agoSoupSession: move some code from SoupMessageQueue here
Dan Winship [Sat, 29 Sep 2012 12:56:48 +0000 (08:56 -0400)]
SoupSession: move some code from SoupMessageQueue here

Move soup_message_queue_item_set_connection() into SoupSession, since
connection management is the session's job, not the queue's. Likewise,
move the non-queue-item-specific parts of queue_message_restarted()
into SoupSession.

11 years agoSoupConnection: hide a special case
Dan Winship [Fri, 28 Sep 2012 21:44:54 +0000 (17:44 -0400)]
SoupConnection: hide a special case

Previously SoupConnection required SoupSession to request that the
connection's state be changed from IN_USE to IDLE after a CONNECT,
even though this would not actually result in the connection's state
changing, and even though SoupSession would have broken if the state
had changed. Fix this up so that SoupSession can just leave the
connection IN_USE in this case, and SoupConnection deals with fixing
up its internal state accordingly.

11 years agoSoupConnection: track reusability internally
Dan Winship [Fri, 28 Sep 2012 21:17:11 +0000 (17:17 -0400)]
SoupConnection: track reusability internally

Rather than relying on soup-message-io to tell us when a connection
can be reused, track it directly within SoupConnection.

11 years agoSoupConnection: track current message, not current item
Dan Winship [Wed, 24 Oct 2012 11:12:12 +0000 (13:12 +0200)]
SoupConnection: track current message, not current item

SoupConnection doesn't need to care about anything
SoupMessageQueueItem-specific (the one place where it did was
redundant with other code), so go back to only tracking the current
SoupMessage.

11 years agoSoupConnection: drop "message" property
Dan Winship [Wed, 24 Oct 2012 11:08:33 +0000 (13:08 +0200)]
SoupConnection: drop "message" property

epiphany-extensions is dead, so there's no reason to support the
undocumented SoupConnection:message property for soup-fly any more.

11 years agoSoupConnection: don't listen to SoupSocket::disconnected
Dan Winship [Fri, 28 Sep 2012 01:39:43 +0000 (21:39 -0400)]
SoupConnection: don't listen to SoupSocket::disconnected

No one except SoupConnection ever calls soup_socket_disconnect() any
more, so we don't need to listen to SoupSocket::disconnected to know
when it happens.

11 years agoAdded SoupContentProcessor support to SoupMessage, SoupContentDecoder & SoupContentSn...
Sergio Villar Senin [Tue, 21 Aug 2012 14:44:43 +0000 (16:44 +0200)]
Added SoupContentProcessor support to SoupMessage, SoupContentDecoder & SoupContentSniffer

soup-message-io uses the content processors registered for each SoupMessage
to properly setup the stack of streams used to read a particular resource
either downloaded from the network or read from a local cached file. Note
that server-side messages do not have content processor support yet.

SoupContentDecoder becomes a content processor and wraps the given base
stream with a list of decoders when required.

SoupContentSniffer becomes a content processor working at the
SOUP_STAGE_BODY_DATA stage.

https://bugzilla.gnome.org/show_bug.cgi?id=682112

11 years agoSoupContentProcessor: new interface
Sergio Villar Senin [Mon, 30 Jul 2012 11:31:05 +0000 (13:31 +0200)]
SoupContentProcessor: new interface

New SoupContentProcessor interface. It defines a _wrap_input() function which
implementors will use to add their own stream on top of the given base
stream.

https://bugzilla.gnome.org/show_bug.cgi?id=682112

11 years agobuild: don't export private symbols in the libraries
Dan Winship [Fri, 2 Nov 2012 16:07:58 +0000 (12:07 -0400)]
build: don't export private symbols in the libraries

Add libsoup-2.4.sym and libsoup-gnome-2.4.sym, and use them to
restrict the exported symbols in the libraries to what it's supposed
to be.

https://bugzilla.gnome.org/show_bug.cgi?id=595176

11 years agoconnection-test: make it not require access to private SoupConnection symbols
Dan Winship [Fri, 2 Nov 2012 16:07:30 +0000 (12:07 -0400)]
connection-test: make it not require access to private SoupConnection symbols

11 years agosoup-multipart-input-stream: belatedly add .h file to soup.h
Dan Winship [Fri, 2 Nov 2012 16:07:03 +0000 (12:07 -0400)]
soup-multipart-input-stream: belatedly add .h file to soup.h

11 years agoSoupSession: mark a static function static (and clarify why it's there)
Dan Winship [Fri, 2 Nov 2012 15:53:00 +0000 (11:53 -0400)]
SoupSession: mark a static function static (and clarify why it's there)

11 years agosoup-version: minor style fixes
Dan Winship [Fri, 2 Nov 2012 15:48:08 +0000 (11:48 -0400)]
soup-version: minor style fixes

11 years agotests: fix some race conditions
Dan Winship [Wed, 31 Oct 2012 15:08:06 +0000 (11:08 -0400)]
tests: fix some race conditions

A few tests were written such that they could fail/crash if the machine
was too slow. Fix.

11 years agosoup_header_parse_param_list: return empty GHashTable instead of NULL
Dan Winship [Mon, 29 Oct 2012 12:05:01 +0000 (08:05 -0400)]
soup_header_parse_param_list: return empty GHashTable instead of NULL

Special-casing the "no parameters" case here complicates other code
(eg, currently it causes warnings in SoupCache if you get an empty
Cache-Control header).

11 years ago2.41.1 2.41.1 LIBSOUP_2_41_1
Dan Winship [Mon, 22 Oct 2012 18:38:20 +0000 (20:38 +0200)]
2.41.1

11 years ago.gitignore: add tests/soup-tests.gresource
Dan Winship [Mon, 22 Oct 2012 18:16:24 +0000 (20:16 +0200)]
.gitignore: add tests/soup-tests.gresource

11 years agotests: add support for Apache 2.4
Dan Winship [Mon, 22 Oct 2012 18:15:49 +0000 (20:15 +0200)]
tests: add support for Apache 2.4

11 years agoRemove now-unnecessary g_type_init() calls
Dan Winship [Mon, 22 Oct 2012 17:00:13 +0000 (19:00 +0200)]
Remove now-unnecessary g_type_init() calls

11 years agoport to GTask
Dan Winship [Mon, 18 Jun 2012 13:54:41 +0000 (09:54 -0400)]
port to GTask

11 years agoAdd API to get version information
Martin Robinson [Fri, 21 Sep 2012 00:02:40 +0000 (17:02 -0700)]
Add API to get version information

Expose API to get information about the soup version. This is useful
because it allows applications to use API without actually depending on
it completely.

https://bugzilla.gnome.org/show_bug.cgi?id=684514

11 years agosoup-request: Add support to handle gresource URI requests
Carlos Garcia Campos [Sun, 26 Aug 2012 13:20:34 +0000 (15:20 +0200)]
soup-request: Add support to handle gresource URI requests

GFile already supports gresource when using g_file_new_for_uri() with a
resource:// URI. We can add "resource" as a valid scheme for
SoupRequestFile and make sure the GFile is created with the gresource
URI for gresource requests.

https://bugzilla.gnome.org/show_bug.cgi?id=682721

11 years agoSoupConnection: fix a race condition with non-keepalive messages
Dan Winship [Tue, 2 Oct 2012 12:57:52 +0000 (08:57 -0400)]
SoupConnection: fix a race condition with non-keepalive messages

When a SoupSession sets a connection back to IDLE on a non-keepalive
message, the connection then disconnects itself. However, it had been
briefly setting its state to IDLE before disconnecting. Although this
wasn't supposed to be observable (it doesn't emit a notification), in
a SoupSessionSync, it could be observed by another thread, which might
then try to claim the connection to send another request on, causing
problems when the first thread then disconnected it.

Fix this by inlining clear_current_item() into
soup_connection_set_state() and reordering the code to not change
priv->state until after deciding whether or not it's going to
disconnect.

https://bugzilla.gnome.org/show_bug.cgi?id=684238

11 years agoadding uz@cyrillic to LINGUAS
Bahodir Mansurov [Tue, 16 Oct 2012 18:51:54 +0000 (14:51 -0400)]
adding uz@cyrillic to LINGUAS

11 years agoupdating Uzbek@cyrillic translation
Bahodir Mansurov [Tue, 16 Oct 2012 18:48:57 +0000 (14:48 -0400)]
updating Uzbek@cyrillic translation

11 years agosoup-auth-manager-ntlm.c: don't include the default domain in the response
Dan Winship [Tue, 16 Oct 2012 14:55:18 +0000 (10:55 -0400)]
soup-auth-manager-ntlm.c: don't include the default domain in the response

If the user didn't specify a domain in their username, then send ""
for the domain in the response, rather than echoing back the default
domain. This is apparently more compatible with what other apps do.

https://bugzilla.gnome.org/show_bug.cgi?id=624613

11 years agoPost-branch release bump
Dan Winship [Tue, 16 Oct 2012 11:39:40 +0000 (07:39 -0400)]
Post-branch release bump

11 years ago2.40.1 2.40.1 LIBSOUP_2_40_1 upstream/2.40.1
Dan Winship [Tue, 16 Oct 2012 11:35:03 +0000 (07:35 -0400)]
2.40.1

11 years agoBe more aggressive when looking for the termination boundary
Gustavo Noronha Silva [Mon, 8 Oct 2012 20:10:19 +0000 (17:10 -0300)]
Be more aggressive when looking for the termination boundary

Turns out some servers may send line feeds and carriage return after the final
boundary. That's the case for the following WebKit LayoutTest:

    http/tests/multipart/load-last-non-html-frame.php

https://bugzilla.gnome.org/show_bug.cgi?id=685752

11 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 13 Oct 2012 10:50:38 +0000 (12:50 +0200)]
Updated Norwegian bokmål translation

11 years agoSoupAddress: fix handling of IPv6 literals
Dan Winship [Sun, 7 Oct 2012 22:24:12 +0000 (18:24 -0400)]
SoupAddress: fix handling of IPv6 literals

When generating a URI to pass to GProxyResolver, escape IPv6 literals properly.

https://bugzilla.gnome.org/show_bug.cgi?id=684990

11 years ago[l10n] Added Catalan (Valencian) translation
Carles Ferrando [Tue, 25 Sep 2012 23:23:44 +0000 (01:23 +0200)]
[l10n] Added Catalan (Valencian) translation

11 years ago[l10n] Added Catalan translation
Gil Forcada [Tue, 25 Sep 2012 23:23:25 +0000 (01:23 +0200)]
[l10n] Added Catalan translation

11 years ago2.40.0 2.40.0 LIBSOUP_2_40_0
Dan Winship [Mon, 24 Sep 2012 17:22:55 +0000 (13:22 -0400)]
2.40.0

11 years agoUpdated Latvian translation
Rūdolfs Mazurs [Mon, 24 Sep 2012 13:54:35 +0000 (16:54 +0300)]
Updated Latvian translation

11 years ago[l10n] Added Estonian (et) to LINGUAS
Priit Laes [Mon, 24 Sep 2012 08:08:25 +0000 (11:08 +0300)]
[l10n] Added Estonian (et) to LINGUAS

11 years ago[l10n] Updated Estonian translation
Mattias Põldaru [Mon, 24 Sep 2012 08:03:32 +0000 (11:03 +0300)]
[l10n] Updated Estonian translation

11 years agoUpdated Latvian translation
Rūdolfs Mazurs [Sun, 23 Sep 2012 13:00:02 +0000 (16:00 +0300)]
Updated Latvian translation

11 years agoupdate Simplified Chinese (zh_CN) translation
YunQiang Su [Sat, 22 Sep 2012 21:01:18 +0000 (05:01 +0800)]
update Simplified Chinese (zh_CN) translation

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 22 Sep 2012 12:17:16 +0000 (15:17 +0300)]
Updated Hebrew translation.

11 years agoUpdated Telugu Translations
Krishnababu Krothapalli [Fri, 21 Sep 2012 16:45:49 +0000 (22:15 +0530)]
Updated Telugu Translations

11 years agoAdded Thai translation
Akom Chotiphantawanon [Fri, 21 Sep 2012 11:53:21 +0000 (18:53 +0700)]
Added Thai translation

11 years agoUploaded Ukranian
Daniel Korostil [Fri, 21 Sep 2012 07:09:11 +0000 (10:09 +0300)]
Uploaded Ukranian

11 years agoUpdated Bengali India Translations
Sayak Sarkar [Fri, 21 Sep 2012 04:44:35 +0000 (10:14 +0530)]
Updated Bengali India Translations

11 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 20 Sep 2012 11:31:15 +0000 (13:31 +0200)]
[l10n] Updated German translation

11 years agohindi updated file
Rajesh Ranjan [Thu, 20 Sep 2012 08:45:35 +0000 (14:15 +0530)]
hindi updated file

11 years agohindi updated file by Pratibha Kumari
Rajesh Ranjan [Thu, 20 Sep 2012 08:45:19 +0000 (14:15 +0530)]
hindi updated file by Pratibha Kumari

11 years agoUpdated Bulgarian translation
Alexander Shopov [Wed, 19 Sep 2012 18:08:37 +0000 (21:08 +0300)]
Updated Bulgarian translation

11 years agoupdated Tamil translation
Dr.T.Vasudevan [Wed, 19 Sep 2012 14:57:04 +0000 (20:27 +0530)]
updated Tamil translation

11 years agoupdate Punjabi Translation
A S Alam [Wed, 19 Sep 2012 15:22:58 +0000 (20:52 +0530)]
update Punjabi Translation

11 years agoUpdated Malayalam file
Ani Peter [Tue, 18 Sep 2012 17:31:53 +0000 (23:01 +0530)]
Updated Malayalam file

11 years agoUpdated Hungarian translation
Gabor Kelemen [Mon, 17 Sep 2012 21:29:36 +0000 (23:29 +0200)]
Updated Hungarian translation

11 years ago2.39.92 LIBSOUP_2_39_92
Dan Winship [Mon, 17 Sep 2012 20:43:05 +0000 (16:43 -0400)]
2.39.92

11 years agoUpdated British English translation
Chris Leonard [Mon, 17 Sep 2012 19:29:17 +0000 (20:29 +0100)]
Updated British English translation

11 years agoSoupSessionAsync: destroy the I/O GSource when returning a result
Dan Winship [Mon, 17 Sep 2012 17:53:48 +0000 (13:53 -0400)]
SoupSessionAsync: destroy the I/O GSource when returning a result

When a soup_request_send_async() gets cancelled, we were leaving its
GSource active, causing it to be triggered later, sometimes causing
criticals. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=683404

11 years agoUpdated Russian translation
Yuri Myasoedov [Mon, 17 Sep 2012 12:46:08 +0000 (16:46 +0400)]
Updated Russian translation

11 years agoUpdated Danish translation
Ask H. Larsen [Sat, 15 Sep 2012 21:42:58 +0000 (23:42 +0200)]
Updated Danish translation

11 years agoAdded da to list of languages
Kenneth Nielsen [Sat, 15 Sep 2012 21:42:58 +0000 (23:42 +0200)]
Added da to list of languages

11 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sat, 15 Sep 2012 04:53:52 +0000 (12:53 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

11 years agoFixed plurals in Brazilian Portuguese translation
Rafael Ferreira [Fri, 14 Sep 2012 12:15:42 +0000 (09:15 -0300)]
Fixed plurals in Brazilian Portuguese translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 14 Sep 2012 10:29:33 +0000 (13:29 +0300)]
Updated Belarusian translation.

11 years agoUpdated gujarati file
Sweta Kothari [Fri, 14 Sep 2012 10:24:32 +0000 (15:54 +0530)]
Updated gujarati file

11 years agoUpdated Serbian translation
Мирослав Николић [Fri, 14 Sep 2012 03:55:12 +0000 (05:55 +0200)]
Updated Serbian translation

11 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 13 Sep 2012 19:40:49 +0000 (22:40 +0300)]
Updated Lithuanian translation

11 years agoUpdate French translation
Alexandre Franke [Thu, 13 Sep 2012 18:45:03 +0000 (20:45 +0200)]
Update French translation

11 years agoUpdated Portuguese translation
Duarte Loreto [Wed, 12 Sep 2012 22:37:31 +0000 (23:37 +0100)]
Updated Portuguese translation

11 years agoUpdated Marathi Translations
Sandeep Sheshrao Shedmake [Wed, 12 Sep 2012 12:36:11 +0000 (18:06 +0530)]
Updated Marathi Translations

11 years agoUpdated Galician translations
Fran Diéguez [Wed, 12 Sep 2012 00:05:10 +0000 (02:05 +0200)]
Updated Galician translations

11 years agoUpdated Galician translations
Fran Diéguez [Wed, 12 Sep 2012 00:04:35 +0000 (02:04 +0200)]
Updated Galician translations

11 years agoUpdated Slovenian translation
Martin Srebotnjak [Tue, 11 Sep 2012 17:36:54 +0000 (19:36 +0200)]
Updated Slovenian translation

11 years agoUpdated Indonesian translation
Andika Triwidada [Tue, 11 Sep 2012 16:45:50 +0000 (23:45 +0700)]
Updated Indonesian translation

11 years agoAssamese translation updated
Nilamdyuti Goswami [Tue, 11 Sep 2012 15:46:32 +0000 (21:16 +0530)]
Assamese translation updated

11 years ago[l10n] Updated Italian translation.
Milo Casagrande [Mon, 10 Sep 2012 19:10:03 +0000 (21:10 +0200)]
[l10n] Updated Italian translation.

11 years agoUpdated Greek translation
Tom Tryfonidis [Mon, 10 Sep 2012 18:43:41 +0000 (21:43 +0300)]
Updated Greek translation

11 years agoCzech translation
Marek Černocký [Mon, 10 Sep 2012 16:26:31 +0000 (18:26 +0200)]
Czech translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 10 Sep 2012 16:19:58 +0000 (18:19 +0200)]
Updated Spanish translation

11 years agoUpdated Polish translation
Piotr Drąg [Mon, 10 Sep 2012 15:23:09 +0000 (17:23 +0200)]
Updated Polish translation

11 years agoSoupBodyInputStream: make it seekable
Sergio Villar Senin [Tue, 7 Aug 2012 18:16:01 +0000 (20:16 +0200)]
SoupBodyInputStream: make it seekable

SoupBodyInputStream implements now the GSeekable interface. It does not
longer require a SoupFilterInputStream as base stream unless the encoding is
SOUP_ENCODING_CHUNKED.

https://bugzilla.gnome.org/show_bug.cgi?id=665884

11 years agoSoupSession: when freeing an "unused" host, make sure it's still unused
Dan Winship [Sun, 9 Sep 2012 14:19:00 +0000 (10:19 -0400)]
SoupSession: when freeing an "unused" host, make sure it's still unused

In a multithreaded session, it's possible that a new connection will
be opened on a host while free_unused_host() is waiting to get
conn_lock. So check for that before freeing it.

https://bugzilla.gnome.org/show_bug.cgi?id=682923

11 years agoSoupSession: ensure that no new connections are created after dispose()
Dan Winship [Sun, 9 Sep 2012 13:48:41 +0000 (09:48 -0400)]
SoupSession: ensure that no new connections are created after dispose()

11 years agoSoupSession: add a missing signal disconnection
Dan Winship [Sat, 8 Sep 2012 19:29:21 +0000 (15:29 -0400)]
SoupSession: add a missing signal disconnection

Need to disconnect from notify::state when removing a connection.

11 years agoCzech translation
Marek Černocký [Sun, 9 Sep 2012 06:56:43 +0000 (08:56 +0200)]
Czech translation

11 years agoAdded Czech language
Marek Černocký [Sun, 9 Sep 2012 06:56:21 +0000 (08:56 +0200)]
Added Czech language

11 years agoUpdated Portuguese translation
Duarte Loreto [Sun, 9 Sep 2012 01:08:24 +0000 (02:08 +0100)]
Updated Portuguese translation

11 years agoAdded Brazilian Portuguese translation, reviewed by Enrico Nicoletto <liverig@gmail...
Gabriel F. Vilar [Sat, 8 Sep 2012 02:40:29 +0000 (22:40 -0400)]
Added Brazilian Portuguese translation, reviewed by Enrico Nicoletto <liverig@gmail.com>

11 years agol10n: Updated Persian translation
Arash Mousavi [Fri, 7 Sep 2012 20:33:34 +0000 (01:03 +0430)]
l10n: Updated Persian translation

11 years agol10n: Updated Persian translation
Arash Mousavi [Fri, 7 Sep 2012 20:30:20 +0000 (01:00 +0430)]
l10n: Updated Persian translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 7 Sep 2012 16:11:43 +0000 (19:11 +0300)]
Updated Belarusian translation.

11 years ago[l10n] Added Italian translation.
Milo Casagrande [Thu, 6 Sep 2012 21:06:23 +0000 (23:06 +0200)]
[l10n] Added Italian translation.

11 years agoAdded hu to LINGUAS
Gabor Kelemen [Thu, 6 Sep 2012 14:00:44 +0000 (16:00 +0200)]
Added hu to LINGUAS

11 years agoInitial Hungarian translation added
Gabor Kelemen [Thu, 6 Sep 2012 14:00:23 +0000 (16:00 +0200)]
Initial Hungarian translation added

11 years agoUpdated Indonesian translation
Dirgita [Thu, 6 Sep 2012 03:49:50 +0000 (10:49 +0700)]
Updated Indonesian translation

11 years agosoup-cache: check for empy Cache-Control headers
Sergio Villar Senin [Wed, 5 Sep 2012 15:08:55 +0000 (17:08 +0200)]
soup-cache: check for empy Cache-Control headers

Some sites return empty "Cache-Control" headers. We should add an emptiness
check to the existing NULL checks before trying to do things like
soup_header_parse_param_list().

11 years agoAdded British English translation
Bruce Cowan [Wed, 5 Sep 2012 12:47:39 +0000 (13:47 +0100)]
Added British English translation

11 years agoUpdated Polish translation
Piotr Drąg [Tue, 4 Sep 2012 17:05:18 +0000 (19:05 +0200)]
Updated Polish translation

11 years ago2.39.91 LIBSOUP_2_39_91
Dan Winship [Tue, 4 Sep 2012 13:07:20 +0000 (09:07 -0400)]
2.39.91

11 years agoFix the win32 build
Kalev Lember [Sun, 2 Sep 2012 11:03:12 +0000 (13:03 +0200)]
Fix the win32 build

Make sure glib.h is included before using G_OS_WIN32 ifdef.

https://bugzilla.gnome.org/show_bug.cgi?id=683200

11 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 2 Sep 2012 12:29:56 +0000 (15:29 +0300)]
Updated Lithuanian translation

11 years agoAdded Swedish translation
Daniel Nylander [Sun, 2 Sep 2012 10:37:14 +0000 (12:37 +0200)]
Added Swedish translation

11 years agoAdded ta translation
Dr.T.Vasudevan [Sun, 2 Sep 2012 10:02:24 +0000 (15:32 +0530)]
Added ta translation