Fix the guards around the got_chunk emission so that it doesn't get messed
authorDan Winship <danw@src.gnome.org>
Mon, 19 Nov 2007 17:51:42 +0000 (17:51 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 19 Nov 2007 17:51:42 +0000 (17:51 +0000)
commit39bc91bee61a80fc3cc539aa0a3705018b654a4a
treee33071424081e98f69d76ddb18709d06b5579e18
parent66ed40250d2a9acb4aeffe813b62020e0dd4bf8f
Fix the guards around the got_chunk emission so that it doesn't get messed

* libsoup/soup-message-io.c (read_body_chunk): Fix the guards
around the got_chunk emission so that it doesn't get messed up if
you pause the I/O from the got_chunk handler. (#452280, Marco
Barisione).
(soup_message_io_pause, soup_message_io_unpause): Update docs
again; these are now allowed with client-side I/O as well. Fix
unpause() to unpause asynchronously on async sockets.

* libsoup/soup-session-async.c (send_message): Iterate session's
async_context, not the default main context.

* tests/pull-api.c: Test/sample of creating a pull-style API using
SoupSessionAsync.

* tests/index.txt: new file to act as DirectoryIndex for the
tests. (In particular, pull-api wants this to be largeish.)

svn path=/trunk/; revision=952
ChangeLog
libsoup/soup-message-io.c
libsoup/soup-session-async.c
tests/Makefile.am
tests/httpd.conf.in
tests/index.txt [new file with mode: 0644]
tests/pull-api.c [new file with mode: 0644]