diff options
author | Dan Winship <danw@src.gnome.org> | 2003-06-17 12:24:12 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-06-17 12:24:12 +0000 |
commit | 3fbd8f244df16177520a646f8971372cb43bed30 (patch) | |
tree | a74230ef60f3003ca08e012008951243b129b9b6 /libsoup/soup-server.c | |
parent | 4e3273e3e08c693fdff3d2fc85d3cfc50f2918b2 (diff) | |
download | libsoup-3fbd8f244df16177520a646f8971372cb43bed30.tar.gz |
add a ref_count field. (soup_transfer_read, create_writer): Set initial
* libsoup/soup-transfer.c (SoupReader, SoupWriter): add a
ref_count field.
(soup_transfer_read, create_writer): Set initial ref_count to 2
(one for soup-transfer, one for the caller).
(soup_transfer_read_ref, soup_transfer_read_unref): ref/unref a
reader
(soup_transfer_read_stop): Clears the GIOChannel callbacks and
drops soup-transfer's ref.
(soup_transfer_read_cancel): Now just a stop+unref
(soup_transfer_write_ref, soup_transfer_write_unref,
soup_transfer_write_stop, soup_transfer_write_cancel): Similarly.
* libsoup/soup-message.c (soup_message_cleanup): when setting up
the "finish reading" callbacks, unref the reader so it will be
destroyed once it's done reading.
(soup_message_requeue): Likewise.
* libsoup/soup-queue.c (soup_queue_read_headers_cb): Update for
prototype change (no longer returns a SoupTransferDone).
(soup_queue_read_chunk_cb): Likewise.
* libsoup/soup-server.c (read_headers_cb): Likewise
Diffstat (limited to 'libsoup/soup-server.c')
-rw-r--r-- | libsoup/soup-server.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c index 712a00ed..1ce700cb 100644 --- a/libsoup/soup-server.c +++ b/libsoup/soup-server.c @@ -543,7 +543,7 @@ issue_bad_request (SoupMessage *msg) g_io_channel_unref (channel); } /* issue_bad_request */ -static SoupTransferDone +static void read_headers_cb (const GString *headers, SoupTransferEncoding *encoding, gint *content_len, @@ -656,14 +656,12 @@ read_headers_cb (const GString *headers, g_free (req_path); - return SOUP_TRANSFER_CONTINUE; + return; THROW_MALFORMED_HEADER: g_free (req_path); issue_bad_request(msg); - - return SOUP_TRANSFER_CONTINUE; } static void |