eukim [Sun, 26 Aug 2012 05:58:46 +0000 (14:58 +0900)]
Add Korean translation
Dan Winship [Fri, 10 Aug 2012 14:42:21 +0000 (10:42 -0400)]
SoupSessionAsync: move more logic into process_queue_item()
Move various logic from the post-connect and post-tunnel callbacks
into process_queue_item().
Dan Winship [Thu, 2 Aug 2012 16:06:37 +0000 (12:06 -0400)]
SoupSession: merge AWAITING_CONNECTION state into STARTING
The only thing STARTING did was move directly into
AWAITING_CONNECTION, so there's no need for two separate states.
Dan Winship [Wed, 15 Aug 2012 00:57:00 +0000 (20:57 -0400)]
SoupSession: move all connection tracking into the base class
Since SoupConnection:state is more reliable now, SoupSession can keep
track of when connections are available itself, rather than the
subclasses trying to guess when connections are available.
Dan Winship [Tue, 14 Aug 2012 19:37:32 +0000 (15:37 -0400)]
SoupConnection: fix up ::event signal emissions
And add a test to make sure that all expected events are emitted, in
the correct order.
Dan Winship [Tue, 14 Aug 2012 19:35:03 +0000 (15:35 -0400)]
SoupConnection: fix up states during connection
In particular, when doing an https CONNECT, make sure the connection
never observably switches to the "IDLE" state. Add a test for this.
Dan Winship [Fri, 10 Aug 2012 14:51:34 +0000 (10:51 -0400)]
SoupSession: clean up message response when queueing
To handle messages that get reused, we were calling
soup_message_cleanup_response() from soup_message_send_request(). But
it's better to do it sooner than that, like in
soup_session_append_queue_item().
Dan Winship [Thu, 2 Aug 2012 17:02:06 +0000 (13:02 -0400)]
SoupSessionAsync: rename vars to make tunnel_msg vs real msg clearer
Alexander Larsson [Fri, 24 Aug 2012 11:20:15 +0000 (13:20 +0200)]
Avoid double free of hash key
When soup_message_headers_get_content_disposition re-inserts the
new filename we need to g_strdup the key or otherwise it will
be freed by the hashtable key destroy func.
https://bugzilla.gnome.org/show_bug.cgi?id=682569
Rūdolfs Mazurs [Fri, 24 Aug 2012 10:14:40 +0000 (13:14 +0300)]
Added Latvian translation
Daniel Drake [Thu, 23 Aug 2012 16:04:08 +0000 (10:04 -0600)]
Add missing transfer full annotation to soup_cookie_jar_add_cookie
Adding a cookie to a jar from Python (via introspection) wasn't working
right, since the cookie was being freed as soon as the python object
went out of scope, but soup_cookie_jar_add_cookie() explicitly states
that freeing shouldn't happen.
Add a missing annotation to fix this. Thanks to Benjamin Berg for the
suggestion.
Fixes http://bugs.sugarlabs.org/ticket/3825
https://bugzilla.gnome.org/show_bug.cgi?id=682554
A S Alam [Wed, 22 Aug 2012 03:28:10 +0000 (08:58 +0530)]
update Punjabi Translation
Piotr Drąg [Wed, 22 Aug 2012 01:00:14 +0000 (03:00 +0200)]
Updated Polish translation
Dan Winship [Tue, 21 Aug 2012 12:29:27 +0000 (08:29 -0400)]
soup_session_abort: clarify that it closes connections too
Dan Winship [Mon, 20 Aug 2012 21:34:28 +0000 (17:34 -0400)]
2.39.90
Dan Winship [Mon, 20 Aug 2012 16:05:22 +0000 (12:05 -0400)]
SoupSession: clarify timeout and idle-timeout docs
They only affect connections opened after you set the property.
https://bugzilla.gnome.org/show_bug.cgi?id=681781
Gustavo Noronha Silva [Mon, 20 Aug 2012 18:20:22 +0000 (15:20 -0300)]
Add missing file for last commit
Gustavo Noronha Silva [Mon, 20 Aug 2012 13:37:17 +0000 (10:37 -0300)]
Add SoupMultipartInputStream for handling multipart responses
SoupMultipartInputStream can be used by the API user to wrap the input
stream, and provides API to obtain the next part and its headers,
using a SoupFilterInputStream internally for buffer management.
https://bugzilla.gnome.org/show_bug.cgi?id=656684
Gustavo Noronha Silva [Mon, 20 Aug 2012 13:37:41 +0000 (10:37 -0300)]
Make it possibe to request the boundary be discarded by SoupFilterInputStream
This makes it easier to implement streams that discard the boundary, like
SoupMultipartInputStream.
https://bugzilla.gnome.org/show_bug.cgi?id=656684
Sergio Villar Senin [Mon, 20 Aug 2012 10:26:19 +0000 (12:26 +0200)]
SoupCache: delete untracked files in soup_cache_clear()
Delete all the files in the cache directory when clearing the cache even if
they aren't coupled with any cache entry.
https://bugzilla.gnome.org/show_bug.cgi?id=681509
Sergio Villar Senin [Mon, 20 Aug 2012 10:22:17 +0000 (12:22 +0200)]
SoupCache: moved data from SoupCacheEntry to the writing fixture
The entry fields "current_writing_buffer", "got_body", "stream", and "error"
where only used during the writing phase. Therefore we do not need to keep
all of them in memory in the SoupCacheEntry structure.
https://bugzilla.gnome.org/show_bug.cgi?id=681509
Sergio Villar Senin [Mon, 20 Aug 2012 09:57:09 +0000 (11:57 +0200)]
SoupCache: simplify the usage of soup_cache_entry_remove()/free()
Added a new parameter to soup_cache_entry_remove() that instructs the function
to delete the cached resource file if TRUE. It also unconditionally frees
the resources allocated by the entry by calling soup_cache_entry_free().
https://bugzilla.gnome.org/show_bug.cgi?id=681509
Sergio Villar Senin [Mon, 20 Aug 2012 08:43:56 +0000 (10:43 +0200)]
SoupContentSnifferStream: added can_poll() implementation
Done in terms of the base_stream can_poll() interface. It was not needed to
read resources from network as the underlying streams were all pollable.
This will be used later to sniff locally cached resources. The file streams are
not pollable so we must implement the can_poll() in order to use "normal"
read() calls instead of the read_nonblocking().
https://bugzilla.gnome.org/show_bug.cgi?id=682112
Sergio Villar Senin [Mon, 20 Aug 2012 08:42:18 +0000 (10:42 +0200)]
SoupContentSniffer: removed several unused function arguments
Removed the SoupMessage argument from various sniffing functions as it isn't
really used for sniffing.
https://bugzilla.gnome.org/show_bug.cgi?id=682112
Milan Crha [Mon, 13 Aug 2012 12:27:02 +0000 (14:27 +0200)]
SoupMessage: Add SOUP_MESSAGE_IDEMPOTENT flag
In particular, this lets the app indicate that it's OK to use an
existing connection when sending a POST.
https://bugzilla.gnome.org/show_bug.cgi?id=681493
Daniel Korostil [Fri, 17 Aug 2012 05:19:28 +0000 (08:19 +0300)]
Added uk translation
Chao-Hsiung Liao [Wed, 15 Aug 2012 07:13:22 +0000 (15:13 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Runa Bhattacharjee [Tue, 14 Aug 2012 10:42:38 +0000 (16:12 +0530)]
Added Entry for Bengali India and fixed a wrong sequence in the list
Sayak Sarkar [Tue, 14 Aug 2012 10:41:39 +0000 (16:11 +0530)]
Added Bengali India Translations
Dan Winship [Sun, 12 Aug 2012 14:43:01 +0000 (10:43 -0400)]
SoupSession: make queue items hold a ref on the session
Historically, messages sent via soup_session_queue_message() did not
hold a ref on the session, and unreffing the session when messages
were in progress would cancel them. This is ugly internally though,
and at any rate, depends on being able to know for sure that no one
else is secretly holding a ref on the session.
So, fix it so that pending messages hold a ref on the session, and you
need to use soup_session_abort() before unreffing if you want to
cancel everything.
If it turns out that this breaks things it can be reverted before
2.40...
Dan Winship [Sun, 12 Aug 2012 14:32:49 +0000 (10:32 -0400)]
SoupSessionAsync: fix the idle_run_queue source handling (again)
The previous code checked priv->disposed after the session was freed
sometimes...
Christian Kirbach [Sun, 12 Aug 2012 19:58:37 +0000 (21:58 +0200)]
Added German translation
Sandeep Sheshrao Shedmake [Sun, 12 Aug 2012 14:29:53 +0000 (19:59 +0530)]
Added Marathi Translations
Dan Winship [Sun, 12 Aug 2012 00:03:44 +0000 (20:03 -0400)]
valgrindage
Dan Winship [Fri, 10 Aug 2012 20:53:30 +0000 (16:53 -0400)]
tests: parallelize proxy-test to make it faster
TODO: parallelize auth-test and timeout-test, make it easier to use.
Dan Winship [Thu, 9 Aug 2012 11:24:10 +0000 (07:24 -0400)]
soup-misc-private.h: Fix the single-include #define
Pointed out by various people on multiple occasions until eventually I
remembered to fix it...
Lionel Landwerlin [Wed, 8 Aug 2012 10:13:19 +0000 (11:13 +0100)]
Makefile.glib: allow marshallers signatures containing integer (like INT64)
https://bugzilla.gnome.org/show_bug.cgi?id=681438
Muhammet Kara [Wed, 8 Aug 2012 17:06:41 +0000 (20:06 +0300)]
[l10n]Added Turkish translation
Xan Lopez [Tue, 7 Aug 2012 13:39:30 +0000 (15:39 +0200)]
post-release version bump
Sergio Villar Senin [Thu, 2 Aug 2012 14:50:54 +0000 (16:50 +0200)]
SoupTLD: fix a regression in soup_tld_is_public_suffix()
soup_tld_is_public_suffix() was not returning TRUE for well known TLDs as
".com" after
cbae89f4. Also added some extra documentation to
soup_tld_get_base_domain() in order to make explicit that it returns NULL
for private URLs.
Reworked unit tests in order to allow them detect these regressions.
https://bugzilla.gnome.org/show_bug.cgi?id=681085
Dan Winship [Mon, 6 Aug 2012 21:46:39 +0000 (17:46 -0400)]
2.39.5
Dan Winship [Mon, 6 Aug 2012 18:28:00 +0000 (14:28 -0400)]
soup-xmlrpc: fix parsing of <methodCall> without <params>
If a method takes no parameters, you can leave out the <params>
section of <methodCall>, but soup_xmlrpc_parse_method_call() was
requiring it anyway.
Fix that and add some tests of parameter-less methods.
https://bugzilla.gnome.org/show_bug.cgi?id=671661
Dan Winship [Mon, 6 Aug 2012 14:33:38 +0000 (10:33 -0400)]
soup-socket.c: fix a use-after-free of a GCancellable
Simon McVittie [Thu, 29 Mar 2012 18:17:17 +0000 (19:17 +0100)]
Add a simple regression test for unbound sockets
https://bugzilla.gnome.org/show_bug.cgi?id=673083
Simon McVittie [Thu, 29 Mar 2012 18:17:02 +0000 (19:17 +0100)]
SoupSocket: local, remote address are undefined if unconnected
Warn and return NULL deterministically, rather than warning and returning
uninitialized stack garbage, but document it as "undefined"; these
methods were never meant to be valid in this situation, apparently.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=673083
Dan Winship [Mon, 6 Aug 2012 14:29:31 +0000 (10:29 -0400)]
tld-test: update for changes to TLD data
Dan Winship [Mon, 6 Aug 2012 14:17:28 +0000 (10:17 -0400)]
update effective_tld_names.dat
Nilamdyuti Goswami [Fri, 3 Aug 2012 10:08:38 +0000 (15:38 +0530)]
Assamese translation updated
Kristjan SCHMIDT [Wed, 1 Aug 2012 18:01:48 +0000 (20:01 +0200)]
Add Esperanto translation
Fran Diéguez [Tue, 31 Jul 2012 00:02:52 +0000 (02:02 +0200)]
Updated Galician translations
Dan Winship [Mon, 30 Jul 2012 16:13:16 +0000 (12:13 -0400)]
autogen.sh: remove two outdated bits
Alexsey Nadtochey [Mon, 30 Jul 2012 11:40:13 +0000 (15:40 +0400)]
Updated Russian translation
Sweta Kothari [Fri, 27 Jul 2012 09:06:06 +0000 (14:36 +0530)]
Updated gujarati file & Added LINGUAS file for gujarati
Paweł Forysiuk [Thu, 26 Jul 2012 18:44:02 +0000 (20:44 +0200)]
Fix building with MinGW compiler
Cheng Lu [Thu, 26 Jul 2012 05:35:55 +0000 (13:35 +0800)]
Update Chinese simplified translation for ui
Kjartan Maraas [Wed, 25 Jul 2012 14:29:32 +0000 (16:29 +0200)]
Updated Norwegian bokmål translation
Dan Winship [Wed, 25 Jul 2012 12:54:11 +0000 (08:54 -0400)]
test-utils: simplify the SoupRequest test utils a bit
Yaron Shahrabani [Tue, 24 Jul 2012 20:15:09 +0000 (23:15 +0300)]
Updated Hebrew translation.
Dan Winship [Tue, 24 Jul 2012 20:06:43 +0000 (16:06 -0400)]
SoupConverterWrapper: handle truncated responses in general
Rather than just the specific case of "server claims non-0
Content-Length but response is empty", allow the response to be
truncated at any point. Because, you know, the web.
Dan Winship [Tue, 24 Jul 2012 19:22:44 +0000 (15:22 -0400)]
SoupSessionAsync: fix handling of timed-out SoupRequests
When using the SoupRequest API, a message that hit
SOUP_SESSION_TIMEOUT would error out, but would not emit "finished" or
get fully removed from the queue. Fix that and add SoupRequest tests
to timeout-test (along with tests that "finished" gets emitted).
Tom Tryfonidis [Fri, 20 Jul 2012 10:59:25 +0000 (13:59 +0300)]
Updated Greek translation
Dan Winship [Thu, 19 Jul 2012 12:49:55 +0000 (08:49 -0400)]
SoupSocket: don't emit "readable" on disconnect for blocking sockets
"readable" and "writable" are only supposed to be emitted for
non-blocking sockets, but we were emitting "readable" on disconnect
for all sockets.
In libsoup 2.38 and earlier, this could cause a crash if a message in
a SoupSessionSync failed at certain points, since the code wasn't
expecting to end up in io_read(). The current code no longer has this
problem (since soup-message-io no longer uses the SoupSocket signals),
but other external users of SoupSocket might.
Matej Urbančič [Thu, 19 Jul 2012 08:13:14 +0000 (10:13 +0200)]
Updated Slovenian translation
Dan Winship [Wed, 18 Jul 2012 21:43:12 +0000 (17:43 -0400)]
SoupServer: fix non-default-main-context usage
Need to push the server's async_context around doing message I/O to
make sure all the responses come back to the right place.
Dan Winship [Wed, 18 Jul 2012 12:35:58 +0000 (08:35 -0400)]
Fix deprecation warning on soup_message_headers_get()
https://bugzilla.gnome.org/show_bug.cgi?id=680143
Dan Winship [Tue, 17 Jul 2012 21:00:07 +0000 (17:00 -0400)]
SoupConverterWrapper: handle empty "compressed" responses
If a server sends an empty response but includes a Content-Encoding
header (in particular, in a HEAD or 304 response), suppress the
PARTIAL_INPUT error from the GZlibDecompressor and just return 0.
https://bugzilla.gnome.org/show_bug.cgi?id=679527 (?)
Dan Winship [Tue, 17 Jul 2012 20:58:55 +0000 (16:58 -0400)]
SoupBodyInputStream: fix hang reading empty chunked response
Set the eof flag immediately after reading the last chunk, rather than
waiting for the next read, since if the caller calls is_readable() or
create_source() instead, we need to know to not wait for the
base_stream to become readable.
Мирослав Николић [Tue, 17 Jul 2012 20:08:13 +0000 (22:08 +0200)]
Added Serbian translation
Dan Winship [Tue, 17 Jul 2012 14:11:07 +0000 (10:11 -0400)]
soup_uri_normalize: more fixes
uri_normalized_copy() should not go into fixup mode when it sees a
non-printable character if that character is in @unescape_extra.
Likewise, if it does go into fixup mode, it shouldn't fix up the
@unescape_extra characters.
https://bugzilla.gnome.org/show_bug.cgi?id=680018
Dan Winship [Tue, 17 Jul 2012 12:34:51 +0000 (08:34 -0400)]
2.39.4.1
Carlos Garcia Campos [Tue, 17 Jul 2012 10:54:07 +0000 (12:54 +0200)]
soup-tld: Handle SOUP_TLD_ERROR_NO_BASE_DOMAIN in soup_tld_domain_is_public_suffix()
And return FALSE in case domain doesn't have a base domain, so that non
suffixed domains like localhost are not considered public.
https://bugzilla.gnome.org/show_bug.cgi?id=679230
Dan Winship [Tue, 17 Jul 2012 12:27:46 +0000 (08:27 -0400)]
tld-parser.py: fix tabs vs spaces
and remove an unused import. patch from "marduk".
https://bugzilla.gnome.org/show_bug.cgi?id=680089
Daniel Mustieles [Tue, 17 Jul 2012 10:05:08 +0000 (12:05 +0200)]
Updated Spanish translation
Dan Winship [Mon, 16 Jul 2012 22:27:30 +0000 (18:27 -0400)]
2.39.4
Dan Winship [Mon, 16 Jul 2012 22:03:24 +0000 (18:03 -0400)]
soup-tld: do not consider non suffixed domains as public
Non suffixed hostnames (used in many intranet applications) should not be
considered as public.
Based on a patch from Sergio Villar Senin.
https://bugzilla.gnome.org/show_bug.cgi?id=679230
Alban Browaeys [Mon, 16 Jul 2012 21:21:18 +0000 (23:21 +0200)]
Set the message priv->decoders to NULL after free.
Set the message priv->decoders to NULL after free
to fix
(epiphany:14909): GLib-GObject-CRITICAL **: g_object_unref:
assertion `G_IS_OBJECT (object)' failed
in epiphany from soup_message_cleanup_response.
https://bugzilla.gnome.org/show_bug.cgi?id=680055
Dan Winship [Mon, 16 Jul 2012 16:58:40 +0000 (12:58 -0400)]
soup_message_headers_get_content_length: recheck encoding
Use soup_message_headers_get_encoding() rather than looking at
hdrs->encoding directly, so that it gets recomputed if it's stale (eg,
from another header having been removed).
https://bugzilla.gnome.org/show_bug.cgi?id=680029
Carlos Garcia Campos [Mon, 16 Jul 2012 16:18:31 +0000 (18:18 +0200)]
soup-cache: Save the sniffed mime type in the cache too
https://bugzilla.gnome.org/show_bug.cgi?id=680029
Dan Winship [Mon, 2 Jul 2012 17:50:39 +0000 (13:50 -0400)]
SoupSession: rename host_lock to conn_lock
since that describes its purpose better
Dan Winship [Fri, 8 Jun 2012 08:04:36 +0000 (04:04 -0400)]
soup-message-io: make disconnect-on-unfinished more implicit
Rather than disconnecting the connection from soup_message_io_stop()
if the message didn't complete, do it from
SoupConnection:clear_current_item(). This makes it DTRT even if the
SoupMessageQueueItem loses its connection before
soup_message_io_stop() gets called.
Dan Winship [Sun, 27 May 2012 15:49:26 +0000 (11:49 -0400)]
soup_session_queue_message: simplify the msg refcounting internally
Dan Winship [Sun, 27 May 2012 15:30:03 +0000 (11:30 -0400)]
SoupSession: replace queue_message() base impl with a separate method
Create soup_session_append_queue_item() to do what the base
implementation of queue_message() did, and use that from various
places that used to call the base queue_message() directly.
Dan Winship [Mon, 16 Jul 2012 16:04:52 +0000 (12:04 -0400)]
soup-uri: fix uri_normalized_copy to not always do fixup
need_fixup was always getting set, because the trailing NUL character
was being processed by the loop. Fix.
Pointed out by Yann SOUBEYRAND,
https://bugzilla.gnome.org/show_bug.cgi?id=680018
Chao-Hsiung Liao [Mon, 16 Jul 2012 00:48:40 +0000 (08:48 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Ihar Hrachyshka [Sun, 15 Jul 2012 11:23:21 +0000 (14:23 +0300)]
Updated Belarusian translation.
Aurimas Černius [Sat, 14 Jul 2012 15:50:25 +0000 (18:50 +0300)]
Added Lithuanian translation
Kjartan Maraas [Sat, 14 Jul 2012 11:24:22 +0000 (13:24 +0200)]
Remove zh_HK and zh_TW because the translation files are missing
Chao-Hsiung Liao [Sat, 14 Jul 2012 06:17:37 +0000 (14:17 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Dan Winship [Mon, 9 Jul 2012 18:36:09 +0000 (14:36 -0400)]
Fix the retry-on-broken-connection codepath for SoupRequest
The retry-if-the-server-closes-the-connection-immediately code was
only getting run in the SoupMessage API codepaths. Fit it into the
right place in the SoupRequest paths too, and test that from
connection-test.
Might fix https://bugzilla.gnome.org/show_bug.cgi?id=679527 ?
Dan Winship [Mon, 9 Jul 2012 17:44:42 +0000 (13:44 -0400)]
Add some test-utils helpers for async SoupRequest usage
Dan Winship [Fri, 13 Jul 2012 19:27:13 +0000 (15:27 -0400)]
soup-client-input-stream: don't chain up from close/close_async
GInputStream's default close_async method runs the sync close method
in a thread, which means that you can't chain up to it from a subclass
implementation. And GFilterInputStream only overrides close_fn, not
close_async, so there's no way to asynchronously get the
close-base-stream behavior if we want to override close_async in
SoupClientInputStream. Ugh! Anyway, we always have a non
close-base-stream SoupBodyInputStream somewhere under the
SoupClientInputStream, so there's no need to chain up anyway.
Fixes a sporadic bug caused by the fact that we were closing the
stream (and thus calling soup_message_io_run_until_finish()) twice.
Dan Winship [Fri, 6 Jul 2012 17:09:50 +0000 (13:09 -0400)]
Clean up includes
Especially, include soup.h rather than individually including a bunch
of other public soup-*.h files.
Remove unnecessary system includes (many are leftovers from code that
has moved down into glib).
Dan Winship [Wed, 4 Jul 2012 17:12:38 +0000 (13:12 -0400)]
Reorganize files to need fewer forward declarations
Also, prefix virtual method implementation names with the class name,
to be consistent with other code.
Dan Winship [Wed, 4 Jul 2012 16:44:37 +0000 (12:44 -0400)]
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Dan Winship [Mon, 2 Jul 2012 14:49:53 +0000 (10:49 -0400)]
Use g_clear_object(), g_clear_pointer()
Dan Winship [Mon, 2 Jul 2012 14:18:18 +0000 (10:18 -0400)]
Use g_ptr_array_new_with_free_func()
Dan Winship [Mon, 2 Jul 2012 13:49:48 +0000 (09:49 -0400)]
Use g_slist_free_full()
Dan Winship [Sun, 3 Jun 2012 13:36:14 +0000 (09:36 -0400)]
Replace g_hash_table_foreach() with GHashTableIter
or g_hash_table_new_full() when the foreach was only being used for
cleanup.
Dan Winship [Mon, 2 Jul 2012 13:34:18 +0000 (09:34 -0400)]
Remove an unnecessary old demo program that doesn't work any more
Dan Winship [Sun, 3 Jun 2012 13:33:44 +0000 (09:33 -0400)]
soup-session.c: whitespace fix