diff options
author | Alex Graveley <alex@ximian.com> | 2001-09-08 02:20:49 +0000 |
---|---|---|
committer | Alex Graveley <orph@src.gnome.org> | 2001-09-08 02:20:49 +0000 |
commit | fda940a0beefbca36b770f22d5eda7973622d017 (patch) | |
tree | f7eb2658599102186e2f1beb145237c1b6652c9c /libsoup/soup-misc.c | |
parent | 63bd2d798578313e4e4a953cbc7097fd5f1fd7f0 (diff) | |
download | libsoup-fda940a0beefbca36b770f22d5eda7973622d017.tar.gz |
Rewritten for the new apis, and to be more clean, and to have many
2001-09-07 Alex Graveley <alex@ximian.com>
* tests/stress-test.c: Rewritten for the new apis, and to be more
clean, and to have many settings for varying simultaneous
messages, message counts, iterations, posting of data, etc.
* tests/simple-test.c: Rewritten for the new apis, and to be more
clean.
* tests/server-test.c (main): Added. Simple test for standalone
dynamic servers.
* tests/mod-server-test.c (callback): Added. Simple test for
soup-httpd/apache server modules.
* tests/handler-test.c: Added. Stress test for SoupMessage
handlers.
* tests/cgi-test.c: Added. Simple test for CGI serving.
* src/soup-httpd/soup-httpd.c: Use libsoup's SoupServer code for
all request processing. soup-httpd becomes a wrapper for module
loading and logging.
* src/libwsdl/Makefile.am (INCLUDES): Remove WSDL_CFLAGS.
* src/libsoup/soup-socket.c (soup_socket_server_accept): Set
O_NONBLOCK on the returned SoupSocket.
(soup_socket_server_try_accept): Ditto.
* src/libsoup/soup-server.c: Reimplement for independent
SoupServer support. Remove separate authorization handler
concept. Process based on request paths. Import code from
soup-httpd to allow standalone dynamic servers, and cgi support.
* src/libsoup/soup-queue.c (soup_check_used_headers): Remove
special handling of SOAPAction.
(soup_queue_connect_cb): Start listening for reads immediately so
that we cna process HTTP 1xx intermediate responses.
(soup_queue_message): Rename from soup_message_queue.
soup_message_queue is now in soup-message.c and simply calls this.
* src/libsoup/soup-private.h (RESPONSE_BLOCK_SIZE): Rename
existing SoupServer to SoupHost. Create new SoupServer struct.
Add server and server_sock elements to SoupMessagePrivate. Move
SoupServerHandler definition to soup-server.h. Move define for
soup_queue_shutdown to new soup-queue.h.
* src/libsoup/soup-ntlm.c: Add mojo for getting a portable alloca.
* src/libsoup/soup-message.h: Remove SoupErrorCode. Add
SoupKnownErrorCode and SoupErrorClass enums. Add
SOUP_ERROR_CANT_CONNECT_PROXY and
SOUP_ERROR_CANT_AUTHENTICATE_PROXY for errors related directly to
proxy communications.
* src/libsoup/soup-message.c (soup_message_new): Take the HTTP
method name as the second argument. Remove per-message handlers
for authentication and redirection.
(soup_message_issue_callback): Uses finalize_message to avoid
double cleanup. Remove error argument, as they should be set
using soup_message_set_error.
(soup_message_run_handlers): Run per-message handlers followed by
global handlers, if a handler requeues a message we stop
processing. If the invoke_type is POST_BODY, we issue the final
callback.
(soup_message_remove_handler): Make public.
(soup_message_set_error): Impl
(soup_message_set_error_full): Impl
(soup_message_set_handler_error): Impl
(soup_get_error_phrase): Impl
(soup_get_error_class): Impl
* src/libsoup/soup-dav-server.c: Add a reference to the SoupServer
we are registered with. Use soup_message_set_error throughout.
(i_copy): Fix assignment causing this loop to never run.
(soup_dav_server_register): Add SoupServer and required authtypes
parameters.
* src/libsoup/soup-context.c: Replace references to SoupServer
with SoupHost, so we don't clash with the SoupServer from
soup-server.h. Rename soup_servers to soup_hosts.
* src/libsoup/Makefile.am (libsoup_la_SOURCES): Add soup-queue.h.
* configure.in (SOUP_CURRENT): Add some helpful comments and bump
to '3'. Bump version to 0.5.99 (0.6 development). Use
AC_FUNC_ALLOCA instead of just checking for alloca.h. Remove
WSDL_CFLAGS.
Diffstat (limited to 'libsoup/soup-misc.c')
-rw-r--r-- | libsoup/soup-misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-misc.c b/libsoup/soup-misc.c index 0d8f222f..f17135d8 100644 --- a/libsoup/soup-misc.c +++ b/libsoup/soup-misc.c @@ -18,6 +18,7 @@ #include "soup-misc.h" #include "soup-private.h" +#include "soup-queue.h" gboolean soup_initialized = FALSE; |