platform/upstream/libsoup.git
17 years agoinitialize "errors" to 0. duh. Pointed out by Michael Wolf.
Dan Winship [Tue, 16 Jan 2007 20:54:02 +0000 (20:54 +0000)]
initialize "errors" to 0. duh. Pointed out by Michael Wolf.

* tests/header-parsing.c (do_request_tests, do_response_tests):
initialize "errors" to 0. duh. Pointed out by Michael Wolf.

svn path=/trunk/; revision=908

17 years ago2.2.99 LIBSOUP_2_2_99
Dan Winship [Mon, 8 Jan 2007 21:20:07 +0000 (21:20 +0000)]
2.2.99

        * configure.in: 2.2.99

        * NEWS: update

svn path=/trunk/; revision=906

17 years agoRewrite this to be easier to understand and more correct, and make the
Dan Winship [Sat, 6 Jan 2007 19:24:44 +0000 (19:24 +0000)]
Rewrite this to be easier to understand and more correct, and make the

* libsoup/soup-headers.c (soup_headers_parse): Rewrite this to be
easier to understand and more correct, and make the "str" param
const rather than overwriting it during parsing.
(soup_headers_parse_request, soup_headers_parse_response):
Likewise, make "str" param const. Fix the doc comment to describe
the correct constraint on str. Make the parsing slightly more
lenient as per sections 4.1 and 19.3 of RFC 2616.

* tests/header-parsing.c: new regression test, for Request-Line,
Status-Line, and message-header parsing.

Inspired by #391970 (crash in SoupServer when certain invalid
requests are received).

svn path=/trunk/; revision=905

17 years agoFree ssl_creds. Pointed out by Chris Austin.
Dan Winship [Tue, 5 Dec 2006 19:03:27 +0000 (19:03 +0000)]
Free ssl_creds. Pointed out by Chris Austin.

* libsoup/soup-session.c (finalize): Free ssl_creds. Pointed out
by Chris Austin.

17 years agoRemove the calls to soup_message_io_stop() here; the corresponding calls
Dan Winship [Tue, 5 Dec 2006 18:37:16 +0000 (18:37 +0000)]
Remove the calls to soup_message_io_stop() here; the corresponding calls

* libsoup/soup-message.c (soup_message_set_uri): Remove the calls
to soup_message_io_stop() here; the corresponding calls were
needed back in the SoupContext days, but they are wrong now and
cause async-redirects-to-other-hosts to fail. #382251. Also
clarify docs with respect to soup_session_requeue_message().

* libsoup/soup-message-io.c (soup_message_io_stop): Clarify docs

17 years ago2.2.98 LIBSOUP_2_2_98
Dan Winship [Mon, 20 Nov 2006 21:52:58 +0000 (21:52 +0000)]
2.2.98

* configure.in: 2.2.98

* NEWS: update

17 years ago Patch from Andrew W. Nosenko:
Dan Winship [Mon, 20 Nov 2006 21:47:04 +0000 (21:47 +0000)]
Patch from Andrew W. Nosenko:

* libsoup/soup-message-client-io.c (parse_response_headers): Avoid
memory leak when parse_response_headers() is called on a message
that has a 'reason_phrase' already for some reason.

* libsoup/soup-gnutls.c (soup_gnutls_free): Avoid memory leak:
hostname was not freed.
(soup_ssl_wrap_iochannel): Avoid memory leak: SoupGNUTLSChannel
'chan' was not freed in case of initialization error. Avoid double
close of the "real" (plain, non-ssl) channel FD.

* libsoup/soup-socket.c (soup_socket_start_proxy_ssl): Avoid
memory leak: the "real" (plain, non-ssl) GIOChannel was never
"finally" unreffed (one more *_ref() than *_unref()) in case of
ssl-wrapping.

17 years agoAdd some missing "static"s. Patch from Matthias Clasen, #376387
Dan Winship [Mon, 20 Nov 2006 21:38:18 +0000 (21:38 +0000)]
Add some missing "static"s. Patch from Matthias Clasen, #376387

* libsoup/soup-connection-ntlm.c (send_request):
* libsoup/soup-session-sync.c (queue_message):
* libsoup/soup-status.c (reason_phrases): Add some missing
"static"s. Patch from Matthias Clasen, #376387

17 years ago<value>foo</value> should mean the same thing as
Dan Winship [Mon, 20 Nov 2006 21:34:53 +0000 (21:34 +0000)]
<value>foo</value> should mean the same thing as

* libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_type)
(soup_xmlrpc_value_get_string): <value>foo</value> should mean the
same thing as <value><string>foo</string></value>. Pointed out by
Todd Kulesza. #364490

17 years agoBump version to 2.2.97. Bump AGE and CURRENT for addition of LIBSOUP_2_2_97
Dan Winship [Mon, 6 Nov 2006 20:55:24 +0000 (20:55 +0000)]
Bump version to 2.2.97. Bump AGE and CURRENT for addition of

* configure.in: Bump version to 2.2.97. Bump AGE and CURRENT for
addition of soup_xml_real_node.

* NEWS: update

17 years agonew method to find a "real" (ie, not comment or whitespace) xml node
Dan Winship [Mon, 6 Nov 2006 20:35:28 +0000 (20:35 +0000)]
new method to find a "real" (ie, not comment or whitespace) xml node

* libsoup/soup-misc.c (soup_xml_real_node): new method to find a
"real" (ie, not comment or whitespace) xml node

* libsoup/soup-soap-response.c (parse_parameters)
(soup_soap_response_from_string)
(soup_soap_parameter_get_first_child)
(soup_soap_parameter_get_next_child): Use soup_xml_real_node.
Based on a patch from Andrew W. Nosenko.

* libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
don't call xmlKeepBlanksDefault, which changes libxml's behavior
globally! Instead, use soup_xml_real_node() when traversing the
xml tree.

* libsoup/soup-xmlrpc-response.c
(soup_xmlrpc_response_from_string): don't call
xmlKeepBlanksDefault.
(exactly_one_child): rewrite in terms of soup_xml_real_node()
(which means it handles comments now as well)
(soup_xmlrpc_value_get_struct)
(soup_xmlrpc_value_array_get_iterator)
(soup_xmlrpc_value_array_iterator_prev)
(soup_xmlrpc_value_array_iterator_next): Use soup_xml_real_node.

17 years agomisc minor updates
Dan Winship [Sun, 5 Nov 2006 22:01:59 +0000 (22:01 +0000)]
misc minor updates

17 years agodocument this (in particular, point out that str+len must point to exactly
Dan Winship [Sun, 5 Nov 2006 22:01:27 +0000 (22:01 +0000)]
document this (in particular, point out that str+len must point to exactly

* libsoup/soup-headers.c (soup_headers_parse_request): document
this (in particular, point out that str+len must point to exactly
the right place). Allow req_method and req_path to be NULL.
(soup_headers_parse_status_line, soup_headers_parse_response):
document. Also, change "status_phrase" argument to "reason_phrase"
to match the spec. Inspired by #339889.

17 years agoFix an off by one pointed out by Andrew W. Nosenko.
Dan Winship [Fri, 3 Nov 2006 18:32:16 +0000 (18:32 +0000)]
Fix an off by one pointed out by Andrew W. Nosenko.

* libsoup/soup-uri.c (soup_uri_get_protocol): Fix an off by one
pointed out by Andrew W. Nosenko.

17 years agofix lots of warnings. Partially from patches from Andrew W. Nosenko, and
Dan Winship [Fri, 3 Nov 2006 18:31:08 +0000 (18:31 +0000)]
fix lots of warnings. Partially from patches from Andrew W. Nosenko, and

* libsoup/*.c: fix lots of warnings. Partially from patches from
Andrew W. Nosenko, and also some fixes from libsoup-pre214-branch.

17 years agoremove gnutls stuff (we're using pkg-config now)
Dan Winship [Fri, 3 Nov 2006 18:12:15 +0000 (18:12 +0000)]
remove gnutls stuff (we're using pkg-config now)

* acinclude.m4: remove gnutls stuff (we're using pkg-config now)

17 years agouninstall the pkgconfig file. Based on #356809 from Matthew Barnes.
Dan Winship [Fri, 3 Nov 2006 17:58:33 +0000 (17:58 +0000)]
uninstall the pkgconfig file. Based on #356809 from Matthew Barnes.

* Makefile.am (uninstall-local): uninstall the pkgconfig file.
Based on #356809 from Matthew Barnes.

17 years agoFix leaks pointed out by Paolo Borelli. #351500
Dan Winship [Fri, 3 Nov 2006 17:54:02 +0000 (17:54 +0000)]
Fix leaks pointed out by Paolo Borelli. #351500

* libsoup/soup-server.c (get_property): Fix leaks pointed out by
Paolo Borelli. #351500

17 years agoUse pkgconfig to find gnutls. Remove old static linking stuff that was
Dan Winship [Fri, 3 Nov 2006 17:36:23 +0000 (17:36 +0000)]
Use pkgconfig to find gnutls. Remove old static linking stuff that was

* configure.in: Use pkgconfig to find gnutls. Remove old static
linking stuff that was only needed for rcd.

* libsoup.pc.in: Use Requires rather than putting xml/ssl
dependencies directly into Libs/Cflags. From Mikhail Zabaluev.
#343340.

17 years agofix build on cygwin. From "Cygwin Ports maintainer", #321827.
Dan Winship [Fri, 3 Nov 2006 16:46:38 +0000 (16:46 +0000)]
fix build on cygwin. From "Cygwin Ports maintainer", #321827.

* libsoup/Makefile.am (libsoup_2_2_la_LDFLAGS): fix build on
cygwin. From "Cygwin Ports maintainer", #321827.

17 years agoupdate
Dan Winship [Fri, 3 Nov 2006 16:46:15 +0000 (16:46 +0000)]
update

18 years ago2.2.96. bump AGE and CURRENT for new API LIBSOUP_2_2_96
Dan Winship [Mon, 24 Jul 2006 22:14:56 +0000 (22:14 +0000)]
2.2.96. bump AGE and CURRENT for new API

* configure.in: 2.2.96. bump AGE and CURRENT for new API

* NEWS: update

* libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
New, from Fernando Herrera, bug 348532.

18 years agoNew, from Fernando Herrera, bug 348532.
Dan Winship [Mon, 24 Jul 2006 22:05:57 +0000 (22:05 +0000)]
New, from Fernando Herrera, bug 348532.

* libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
New, from Fernando Herrera, bug 348532.

18 years agoif the constructed auth doesn't have a realm, it's invalid, as per RFC
Dan Winship [Fri, 21 Jul 2006 18:55:46 +0000 (18:55 +0000)]
if the constructed auth doesn't have a realm, it's invalid, as per RFC

* libsoup/soup-auth.c (soup_auth_new_from_header_list): if the
constructed auth doesn't have a realm, it's invalid, as per RFC
2617. Based on a patch from Nate Nielsen on libsoup-list.
(soup_auth_get_realm): remove "if available" from docs; all auths
always have a realm.

18 years agoupdate to mention mailing list and bugzilla
Dan Winship [Fri, 21 Jul 2006 18:06:47 +0000 (18:06 +0000)]
update to mention mailing list and bugzilla

* README: update to mention mailing list and bugzilla

* HACKING: kill this since there's nothing here that isn't either
obvious, or redundant with the README

18 years agoIf the server handler set a Content-Length header on the message, don't
Dan Winship [Fri, 21 Jul 2006 18:05:53 +0000 (18:05 +0000)]
If the server handler set a Content-Length header on the message, don't

* libsoup/soup-message-server-io.c (get_response_headers): If the
server handler set a Content-Length header on the message, don't
add a second one. (Preserves compatibility with an old hacky way
that people might have been handling HEAD from SoupServer.)

18 years agoinitialize encoding to SOUP_TRANSFER_CONTENT_LENGTH rather than
Dan Winship [Fri, 21 Jul 2006 16:36:56 +0000 (16:36 +0000)]
initialize encoding to SOUP_TRANSFER_CONTENT_LENGTH rather than

* libsoup/soup-server-message.c (soup_server_message_init):
initialize encoding to SOUP_TRANSFER_CONTENT_LENGTH rather than
SOUP_TRANSFER_UNKNOWN, since SOUP_TRANSFER_UNKNOWN has never
actually worked here, and so there was an undocumented requirement
that you manually set the encoding on every response
(which SoupServer itself was not doing on internal errors).
Problem pointed out by Dennis Jacobfeuerborn on libsoup-list.
(soup_server_message_set_encoding): reject the new
SoupTransferEncoding values, for compatibility

* libsoup/soup-message.h (SoupTransferEncoding): Clarify that
SOUP_TRANSFER_UNKNOWN is essentially an error value, since in the
public API, it always has been, due to bugs. Add some new values,
currently just for internal use: SOUP_TRANSFER_NONE (for cases
like HEAD which never have a body), SOUP_TRANSFER_EOF (to replace
SOUP_TRANSFER_UNKNOWN), and SOUP_TRANSFER_BYTERANGES (which isn't
actually implemented yet).

* libsoup/soup-message.c (soup_message_get_request_encoding,
soup_message_get_response_encoding): figure out the body encoding
being used by the request/response, including all the tricky
cases like HEAD/1xx/etc.
(soup_message_is_keepalive): if the response encoding is
SOUP_TRANSFER_EOF, then the message isn't keepalive.

* libsoup/soup-message-client-io.c (parse_response_headers): use
soup_message_get_response_encoding.

* libsoup/soup-message-server-io.c (parse_request_headers): use
soup_message_get_request_encoding.
(get_response_headers): use both soup_server_message_get_encoding
and soup_message_get_response_encoding, to properly distinguish
between the wire encoding and the alleged-by-headers encoding
(which differ for HEAD, etc).

* libsoup/soup-message-io.c (io_error, read_body_chunk):
s/SOUP_TRANSFER_UNKNOWN/SOUP_TRANSFER_EOF/.
(io_body_state): if encoding is SOUP_TRANSFER_NONE, jump right to
SOUP_MESSAGE_IO_STATE_FINISHING.

* libsoup/soup-server.c (request_finished): Check
soup_socket_is_connected() *before* soup_message_is_keepalive(),
since the message will be invalid if the client unexpectedly
dropped the connection.

* tests/simple-httpd.c (server_callback): handle HEAD requests.
Remove no-longer-necessary soup_server_message_set_encoding()
call.

* tests/get.c: add -d (debug) flag to print headers, and -h flag
to do a HEAD rather than GET

18 years agosync to xmlrpc changes
Dan Winship [Thu, 13 Jul 2006 13:44:02 +0000 (13:44 +0000)]
sync to xmlrpc changes

18 years ago2.2.95.1, and bump SOUP_AGE/SOUP_CURRENT this time. Pointed out by Daniel LIBSOUP_2_2_95_1
Dan Winship [Mon, 10 Jul 2006 16:26:20 +0000 (16:26 +0000)]
2.2.95.1, and bump SOUP_AGE/SOUP_CURRENT this time. Pointed out by Daniel

* configure.in: 2.2.95.1, and bump SOUP_AGE/SOUP_CURRENT this
time. Pointed out by Daniel Holbach.

* configure.in: 2.2.95

* NEWS: update

18 years agodon't build xmlrpc-test unless we have apache/php/xmlrpc-epi. Fixes the
Dan Winship [Mon, 19 Jun 2006 20:23:12 +0000 (20:23 +0000)]
don't build xmlrpc-test unless we have apache/php/xmlrpc-epi. Fixes the

* tests/Makefile.am (noinst_PROGRAMS): don't build xmlrpc-test
unless we have apache/php/xmlrpc-epi. Fixes the build. #345342

* configure.in: fix some quoting

18 years agoadd tests for apache mod_php5 and xmlrpc-epi-php
Dan Winship [Mon, 19 Jun 2006 16:57:47 +0000 (16:57 +0000)]
add tests for apache mod_php5 and xmlrpc-epi-php

        * configure.in: add tests for apache mod_php5 and xmlrpc-epi-php

        * tests/xmlrpc-test.c: XML-RPC regression test

        * tests/xmlrpc-server.php: PHP server for xmlrpc-test

        * tests/httpd.conf.in: add php stuff

        * tests/apache-wrapper.c (apache_cleanup): Use "graceful-stop"
        rather than "stop", so that it stops listening on the socket
        before exiting, so that we can immediately start another apache
        (eg, in "make check").

        * libsoup/soup-date.c (soup_mktime_utc): Fix a bug in leap-year
        counting.

        * libsoup/soup-xmlrpc-message.c
        (soup_xmlrpc_message_write_datetime): rename from
        "..._write_time", to make it consistent with the XML-RPC type name
        and the corresponding SoupXmlrpcResponse method. Also, fix it to
        use the same ISO 8601 format as the spec, and use the right value
        for the seconds field.
        (soup_xmlrpc_message_write_base64): Change the buf arg to a
        gconstpointer rather than a const char *.

        * libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_base64):
        Return a GByteArray containing the decoded data, rather than
        the base64-encoded string.
        (soup_xmlrpc_value_dump_internal): Update for that (and don't
        leak it).
        (soup_xmlrpc_value_array_get_iterator,
        soup_xmlrpc_value_array_iterator_get_value): Make these actually
        work.

18 years ago2.2.94 LIBSOUP_2_2_94
Dan Winship [Mon, 12 Jun 2006 19:36:27 +0000 (19:36 +0000)]
2.2.94

        * configure.in: 2.2.94

        * NEWS: update

18 years agomake auth-test distcheck
Dan Winship [Mon, 12 Jun 2006 19:36:14 +0000 (19:36 +0000)]
make auth-test distcheck

18 years agodist client-howto.xml and server-howto.xml
Dan Winship [Mon, 12 Jun 2006 19:35:45 +0000 (19:35 +0000)]
dist client-howto.xml and server-howto.xml

18 years agos/SOAP/XMLRPC/ in one place where it was missed long ago
Dan Winship [Mon, 12 Jun 2006 19:35:12 +0000 (19:35 +0000)]
s/SOAP/XMLRPC/ in one place where it was missed long ago

18 years agoNew client and server API tutorials.
Dan Winship [Mon, 12 Jun 2006 19:19:19 +0000 (19:19 +0000)]
New client and server API tutorials.

* docs/reference/client-howto.xml:
* docs/reference/server-howto.xml: New client and server API
tutorials.

* docs/reference/*: reorganize, regenerate, fill in some missing
pieces, etc

* libsoup/soup-connection.c (soup_connection_new): document the
varargs param

* libsoup/soup-date.h: sync prototypes to declarations for gtk-doc.

* libsoup/soup-headers.c (soup_headers_parse_response): fix typo
in doc.

18 years agoFurther fixes from Brent Smith. #344458. (soup_xmlrpc_value_get_boolean):
Dan Winship [Mon, 12 Jun 2006 15:19:29 +0000 (15:19 +0000)]
Further fixes from Brent Smith. #344458. (soup_xmlrpc_value_get_boolean):

* libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_int,
soup_xmlrpc_value_get_double): Further fixes from Brent Smith.
#344458.
(soup_xmlrpc_value_get_boolean): Similar fix, plus actually set
the output parameter and make the return value match the other
get_* methods.

18 years agoAdd tests for apache, output tests/httpd.conf
Dan Winship [Fri, 9 Jun 2006 16:28:13 +0000 (16:28 +0000)]
Add tests for apache, output tests/httpd.conf

* configure.in: Add tests for apache, output tests/httpd.conf

* tests/htdigest:
* tests/htpasswd:
* tests/httpd.conf.in: Apache 2.2 config files for auth-test

* tests/apache-wrapper.c (apache_init, apache_cleanup): functions
to start/stop apache

* tests/auth-test.c: Use apache-wrapper functions to start a local
apache process to test authentication against, since the auth-test
tree at developer.ximian.com went missing a long time ago. #311825

* tests/Makefile.am (auth_test_SOURCES): use apache-wrapper.c
(TESTS): include auth-test if HAVE_APACHE.

* libsoup/soup-session.c (lookup_auth): Fix this in the case of a
URI pointing to a directory rather than a file.

18 years agoCheck return value of strtol/g_ascii_strtod correctly. #344222, patch from
Dan Winship [Thu, 8 Jun 2006 12:40:19 +0000 (12:40 +0000)]
Check return value of strtol/g_ascii_strtod correctly. #344222, patch from

* libsoup/soup-xmlrpc-response.c (soup_xmlrpc_value_get_int,
soup_xmlrpc_value_get_double, soup_xmlrpc_value_get_boolean):
Check return value of strtol/g_ascii_strtod correctly. #344222,
patch from Brent Smith.

18 years agorecord whether or not the response was a fault.
Dan Winship [Wed, 7 Jun 2006 19:42:21 +0000 (19:42 +0000)]
record whether or not the response was a fault.

* libsoup/soup-xmlrpc-response.c
 (soup_xmlrpc_response_from_string): record whether or not the
 response was a fault.
 (soup_xmlrpc_response_is_fault): test that. #343973, patch from
 Brent Smith.

18 years ago2.2.93 LIBSOUP_2_2_93
Dan Winship [Mon, 29 May 2006 19:52:02 +0000 (19:52 +0000)]
2.2.93

* configure.in: 2.2.93

* NEWS: update

18 years agoadd a new state "FINISHING" which means "done I/O, but not yet done
Dan Winship [Mon, 29 May 2006 19:41:14 +0000 (19:41 +0000)]
add a new state "FINISHING" which means "done I/O, but not yet done

* libsoup/soup-message-io.c (SoupMessageIOState): add a new state
"FINISHING" which means "done I/O, but not yet done processing and
cleanup" before "DONE" (which now always means "completely done").
(soup_message_io_stop): disconnect the socket if the read state is
"< FINISHING", not "!= DONE".
(io_error): on an EOF-that-signals-end-of-data, set state to
FINISHING and run io_read().
(io_read, io_write): remove the g_return_if_fails from before.
s/DONE/FINISHING/ in most places. In the FINISHING handler, stop
listening for the readable/writable signal (eg, so we don't end up
reading a following pipelined request), and set the state to DONE.
(soup_message_io_unpause): Only reconnect the readable/writable
signals if the io state isn't DONE. Guard the calls to
io_read/io_write better so that it's safe to call this even after
they are both DONE, since it may be easier for us to test that
than for the caller to.

Fixes 334469, 342640, and another bug caused by the earlier
workaround to 334469. Based on patches and analysis from William
Jon McCann and Armin Bauer.

* tests/simple-proxy.c (main): add g_thread_init (NULL) to make
this work again. (Pointed out by Alex Larsson)

18 years ago#include <sys/time.h> for struct timeval. #342048
Dan Winship [Fri, 26 May 2006 21:24:58 +0000 (21:24 +0000)]
#include <sys/time.h> for struct timeval. #342048

* libsoup/soup-socket.c: #include <sys/time.h> for struct timeval.
#342048

18 years agoStart SSL after CONNECTing! Doh. Part of bnc #174255.
Dan Winship [Fri, 26 May 2006 18:14:37 +0000 (18:14 +0000)]
Start SSL after CONNECTing! Doh. Part of bnc #174255.

* libsoup/soup-connection.c (soup_connection_connect_sync): Start
SSL after CONNECTing! Doh. Part of bnc #174255.
(SoupConnectionMode): new enum for the three types of
SoupConnection (direct, proxy, tunnel).
(set_property): set priv->mode according to proxy_uri and
conn_uri.
(socket_connect_result, soup_connection_connect_sync): use
priv->mode to decide whether or not to tunnel.
(send_request): Only pass TRUE for is_proxy to
soup_message_send_request if mode is PROXY, not if it's TUNNEL.
(Also part of bnc #174255).

18 years agotests if IO is currently in progress on a message.
Dan Winship [Fri, 26 May 2006 14:40:11 +0000 (14:40 +0000)]
tests if IO is currently in progress on a message.

* libsoup/soup-message-io.c (soup_message_io_in_progress): tests
if IO is currently in progress on a message.

* libsoup/soup-session-async.c (run_queue): don't process messages
that are io_in_progress. #342545, fix based on analysis from Wang
Xin. (In the future we may want to re-fix this by adding a
REQUEUED message status separate from QUEUED.)

18 years agoDon't free the hosts while holding host_lock; that's not allowed and can
Dan Winship [Mon, 22 May 2006 14:47:30 +0000 (14:47 +0000)]
Don't free the hosts while holding host_lock; that's not allowed and can

        * libsoup/soup-session.c (cleanup_hosts): Don't free the hosts
        while holding host_lock; that's not allowed and can cause
        deadlock. #309867. Based on a patch from Veerapuram Varadhan for
        part of bnc #174255.

18 years agobump version to 2.2.92 LIBSOUP_2_2_92
Dan Winship [Mon, 10 Apr 2006 18:09:59 +0000 (18:09 +0000)]
bump version to 2.2.92

* configure.in: bump version to 2.2.92

* NEWS: update

18 years agog_return_if_fail if these get called after the IO is done. This isn't
Dan Winship [Mon, 10 Apr 2006 18:09:01 +0000 (18:09 +0000)]
g_return_if_fail if these get called after the IO is done. This isn't

        * libsoup/soup-message-io.c (io_write, io_read): g_return_if_fail
        if these get called after the IO is done. This isn't supposed to
        happen, but apparently does. Workaround for #334469.

        * libsoup/soup-auth-digest.c (qop_types, algorithm_types):
        NULL-terminate these so we don't crash when trying to parse an
        invalid value. (Flip side of the previous #328615 patch.)

18 years agoWrite out correct digest algorithm value. #328615.
Dan Winship [Mon, 3 Apr 2006 02:58:02 +0000 (02:58 +0000)]
Write out correct digest algorithm value. #328615.

        * libsoup/soup-server-auth.c (soup_server_auth_context_challenge):
        Write out correct digest algorithm value. #328615.

18 years agofix most signed/unsigned mismatch warnings
Dan Winship [Sun, 2 Apr 2006 21:46:18 +0000 (21:46 +0000)]
fix most signed/unsigned mismatch warnings

* libsoup/*.c: fix most signed/unsigned mismatch warnings

18 years agoreplace locale-ish strcasecmps with g_ascii_strcasecmp
Dan Winship [Sun, 2 Apr 2006 21:26:27 +0000 (21:26 +0000)]
replace locale-ish strcasecmps with g_ascii_strcasecmp

        * libsoup/soup-auth-digest.c:
        * libsoup/soup-auth.c:
        * libsoup/soup-message-client-io.c:
        * libsoup/soup-message-server-io.c:
        * libsoup/soup-message.c:
        * libsoup/soup-method.c:
        * libsoup/soup-server-auth.c:
        * tests/get.c: replace locale-ish strcasecmps with
        g_ascii_strcasecmp

18 years agoRewrite Request-Line-parsing code to not have a lame max length. #335040.
Dan Winship [Sun, 2 Apr 2006 20:25:52 +0000 (20:25 +0000)]
Rewrite Request-Line-parsing code to not have a lame max length. #335040.

* libsoup/soup-headers.c (soup_headers_parse_request): Rewrite
Request-Line-parsing code to not have a lame max length. #335040.

18 years agoadd errata from http://skrb.org/ietf/http_errata.html
Dan Winship [Sun, 2 Apr 2006 20:23:51 +0000 (20:23 +0000)]
add errata from skrb.org/ietf/http_errata.html

18 years agoInstall the .pc file mode 644, not 755. #330878
Dan Winship [Sun, 2 Apr 2006 20:03:16 +0000 (20:03 +0000)]
Install the .pc file mode 644, not 755. #330878

* Makefile.am (install-data-local): Install the .pc file mode 644,
not 755. #330878

18 years agoadd some comments
Dan Winship [Sun, 2 Apr 2006 20:02:38 +0000 (20:02 +0000)]
add some comments

18 years agobump version to 2.2.91. LIBSOUP_2_2_91
Dan Winship [Fri, 3 Mar 2006 19:56:28 +0000 (19:56 +0000)]
bump version to 2.2.91.

        * configure.in: bump version to 2.2.91.

        * NEWS: Update

18 years agoTake a GMainContext as well, and update the resolution code to dispatch
Dan Winship [Fri, 3 Mar 2006 19:32:36 +0000 (19:32 +0000)]
Take a GMainContext as well, and update the resolution code to dispatch

* libsoup/soup-dns.c (soup_dns_lookup_resolve_async): Take a
GMainContext as well, and update the resolution code to dispatch
each lookup result in the correct context.

* libsoup/soup-address.c (soup_address_resolve_async_full): New
method that takes a GMainContext to pass to
soup_dns_lookup_resolve_async.

* libsoup/soup-socket.c (soup_socket_connect): Use
soup_address_resolve_async_full. Fixes a problem reported by Armin
Bauer.

* configure.in: update to require glib 2.6, since apparently the
code does.

18 years agoadd a "timeout" property, which gets passed from server to socket, and
Veerapuram Varadhan [Fri, 24 Feb 2006 20:13:17 +0000 (20:13 +0000)]
add a "timeout" property, which gets passed from server to socket, and

        * libsoup/soup-connection.c:
        * libsoup/soup-session.c:
        * libsoup/soup-socket.c: add a "timeout" property,
        which gets passed from server to socket, and session to connection
        to socket, allowing blocking non-responsive sync connections to
        return.  Combination of "EAGAIN" && "Blocking" connection is treated
        as error and the connection will be terminated and the control
        is returned to the caller immediately.

18 years agoDon't use getaddrinfo() etc or try to support IPv6 on Windows, as they are
Tor Lillqvist [Thu, 2 Feb 2006 01:06:20 +0000 (01:06 +0000)]
Don't use getaddrinfo() etc or try to support IPv6 on Windows, as they are

2006-02-02  Tor Lillqvist  <tml@novell.com>

* configure.in: Don't use getaddrinfo() etc or try to support IPv6
on Windows, as they are present by default on XP only. We do want to
support Windows 2000, too.

18 years agofix two bugs in the YYYYMMDD case.
Dan Winship [Wed, 21 Dec 2005 16:11:39 +0000 (16:11 +0000)]
fix two bugs in the YYYYMMDD case.

* libsoup/soup-date.c (soup_date_iso8601_parse): fix two bugs in
the YYYYMMDD case.

* tests/date.c: add three more ISO 8601 cases, to exercise all the
code paths.

#324671, from Emmanuele Bassi

18 years agosync to text on wiki, and point to wiki
Dan Winship [Fri, 25 Nov 2005 18:46:27 +0000 (18:46 +0000)]
sync to text on wiki, and point to wiki

* README: sync to text on wiki, and point to wiki

* TODO: moved to http://live.gnome.org/LibSoup_2fToDo

18 years agoclear priv->io_data right away, to protect against this being re-entered LIBSOUP_2_2_90_NOT_A_REAL_RELEASE
Dan Winship [Thu, 17 Nov 2005 15:57:28 +0000 (15:57 +0000)]
clear priv->io_data right away, to protect against this being re-entered

        * libsoup/soup-message-io.c (io_cleanup): clear priv->io_data
        right away, to protect against this being re-entered mid-cleanup
        (when we unref the connection). #321208, based on a patch from
        Jedy Wang.

18 years agoadd the "name" element to the struct member. #321362, patch from Sebastian
Dan Winship [Wed, 16 Nov 2005 21:04:41 +0000 (21:04 +0000)]
add the "name" element to the struct member. #321362, patch from Sebastian

* libsoup/soup-xmlrpc-message.c
(soup_xmlrpc_message_start_member): add the "name" element to the
struct member. #321362, patch from Sebastian Bauer.

18 years agoadd a bunch of relevant RFCs
Dan Winship [Sat, 12 Nov 2005 20:55:13 +0000 (20:55 +0000)]
add a bunch of relevant RFCs

18 years agomake this build
Dan Winship [Thu, 10 Nov 2005 16:52:30 +0000 (16:52 +0000)]
make this build

18 years agobump version to 2.2.90. This will not be officially released, but once
Dan Winship [Thu, 10 Nov 2005 16:48:42 +0000 (16:48 +0000)]
bump version to 2.2.90. This will not be officially released, but once

* configure.in: bump version to 2.2.90. This will not be
officially released, but once these patches have gotten some
testing they may be pulled up to the gnome-2-12 branch.

* libsoup/soup-connection.c:
* libsoup/soup-server.c:
* libsoup/soup-session.c:
* libsoup/soup-socket.c: add an "async-context" property,
which gets passed from server to socket, and session to connection
to socket, allowing async usage outside the main thread. Based on
patches from Armin Bauer and Jürg Billeter.

* libsoup/soup-misc.c (soup_add_io_watch, soup_add_idle,
soup_add_timeout): utility routines to add watches, idles, and
timeouts to non-default GMainContexts.

* libsoup/soup-message-io.c (io_write): set the read state
appropriately after writing a "100 Continue" response
(io_read): More 100-Continue stuff. I don't think this is quite
right so it will probably change again later.

18 years agoupdate gnome-2-12-base
Dan Winship [Thu, 10 Nov 2005 14:47:19 +0000 (14:47 +0000)]
update

18 years agotell it to generate an index libsoup-pre214-branch-base
Dan Winship [Tue, 1 Nov 2005 15:46:02 +0000 (15:46 +0000)]
tell it to generate an index

* docs/reference/libsoup-docs.sgml: tell it to generate an index

* docs/reference/tmpl/*.sgml: regen with newer gtk-doc

18 years agoCast the argument to g_object_add/remove_weak_pointer to the wrong type,
Dan Winship [Tue, 1 Nov 2005 15:05:48 +0000 (15:05 +0000)]
Cast the argument to g_object_add/remove_weak_pointer to the wrong type,

* libsoup/soup-connection.c (set_current_request,
clear_current_request): Cast the argument to
g_object_add/remove_weak_pointer to the wrong type, to make gcc
4.1 happy, because C is stupid and "void **" means "a pointer to a
void *", not "a pointer to any kind of pointer".

* libsoup/soup-xmlrpc-response.c
(soup_xmlrpc_value_dump_internal): fix gccism. #320349, from
Roland Illig.

18 years agoupdate usage message to match reality
Dan Winship [Fri, 28 Oct 2005 16:44:46 +0000 (16:44 +0000)]
update usage message to match reality

18 years ago (socket_read_watch, read_from_network, socket_write_watch,
Dan Winship [Thu, 27 Oct 2005 19:39:51 +0000 (19:39 +0000)]
(socket_read_watch, read_from_network, socket_write_watch,
soup_socket_write): request and handle G_IO_ERR and G_IO_HUP
events when polling, since poll() will return them whether or not
you asked for them, but glib will ignore them unless you did,
which will result in CPU suckage if such an error occurs. #319305,
patch from Jonathan Matthew.

18 years agounref the SoupAddress passed to soup_socket_connect to avoid a leak. Based
Dan Winship [Thu, 27 Oct 2005 14:46:59 +0000 (14:46 +0000)]
unref the SoupAddress passed to soup_socket_connect to avoid a leak. Based

* libsoup/soup-socket.c (soup_socket_client_new_async,
soup_socket_client_new_sync): unref the SoupAddress passed to
soup_socket_connect to avoid a leak. Based on a patch from Wang
Xin <jedy.wang@sun.com>.

18 years agogr. save then commit
Dan Winship [Thu, 27 Oct 2005 14:01:30 +0000 (14:01 +0000)]
gr. save then commit

18 years ago bgo #316313 / bnc #116762, and probably also bgo #318252
Dan Winship [Thu, 27 Oct 2005 14:00:03 +0000 (14:00 +0000)]
bgo #316313 / bnc #116762, and probably also bgo #318252

* libsoup/soup-message-io.c (soup_message_io_stop): clear io->conn
after releasing it, to make sure we can't accidentally release it
twice.

* libsoup/soup-connection.c (clear_current_request): Call
soup_message_io_stop() on the cleared request.

* libsoup/soup-connection-ntlm.c (ntlm_authorize_post): do a
little dance here to make sure the session can't queue another
message on the connection while we're in the process of requeuing
the original one.

18 years agoupdatage
Dan Winship [Thu, 27 Oct 2005 13:59:24 +0000 (13:59 +0000)]
updatage

18 years agoInclude documentation in developer zipfile.
Tor Lillqvist [Tue, 30 Aug 2005 00:54:55 +0000 (00:54 +0000)]
Include documentation in developer zipfile.

2005-08-30  Tor Lillqvist  <tml@novell.com>

* libsoup-zip.in: Include documentation in developer zipfile.

18 years agoCall g_type_class_add_private. LIBSOUP_2_2_6_1
Dan Winship [Mon, 22 Aug 2005 16:48:54 +0000 (16:48 +0000)]
Call g_type_class_add_private.

* libsoup/soup-soap-message.c (soup_soap_message_class_init): Call
g_type_class_add_private.

* configure.in: Bump to 2.2.6.1

* NEWS: update

18 years agoBump to 2.2.6. Bump SOUP_AGE and SOUP_CURRENT for soup_server_get_socket() LIBSOUP_2_2_6
Dan Winship [Mon, 22 Aug 2005 14:41:45 +0000 (14:41 +0000)]
Bump to 2.2.6. Bump SOUP_AGE and SOUP_CURRENT for soup_server_get_socket()

* configure.in: Bump to 2.2.6. Bump SOUP_AGE and SOUP_CURRENT for
soup_server_get_socket() addition.

* NEWS: update

18 years agoFix g_object_add/remove_weak_pointer usage to prevent a crash when
Dan Winship [Mon, 22 Aug 2005 14:28:27 +0000 (14:28 +0000)]
Fix g_object_add/remove_weak_pointer usage to prevent a crash when

* libsoup/soup-connection.c (set_current_request,
clear_current_request): Fix g_object_add/remove_weak_pointer usage
to prevent a crash when canceling a request. From Tambet.

18 years ago Fix a connection leak reported by Tambet.
Dan Winship [Tue, 16 Aug 2005 14:33:42 +0000 (14:33 +0000)]
Fix a connection leak reported by Tambet.

* libsoup/soup-connection.c (send_request): rather than tracking
the message progress via signals, call
soup_message_send_request_internal() and have it call
soup_connection_release() when it's done.
(request_restarted, request_done): gone
(clear_current_request): handle disconnecting (if necessary) and
updating last_used time here.
(soup_connection_release): Call clear_current_request().
(dispose): Call clear_current_request()

* libsoup/soup-message-client-io.c
(soup_message_send_request_internal): New. Takes a SoupConnection
in addition to the other args, and passes that on to
soup-message-io.

* libsoup/soup-message-io.c (SoupMessageIOData): add a
SoupConnection field.
(io_cleanup): if io->conn is set, unref it.
(soup_message_io_stop): if io->conn is set, and we ended in a
clean state, call soup_connection_release() on it.
(soup_message_io_client): Add a SoupConnection arg, which gets
reffed and stored in io->conn.

* TODO: misc updates

18 years agouse G_GNUC_NULL_TERMINATED.
Dan Winship [Mon, 15 Aug 2005 14:44:12 +0000 (14:44 +0000)]
use G_GNUC_NULL_TERMINATED.

* libsoup/soup-connection.h (soup_connection_new):
* libsoup/soup-server.h (soup_server_new):
* libsoup/soup-session-async.h (soup_session_async_new_with_options):
* libsoup/soup-session-sync.h (soup_session_sync_new_with_options):
* libsoup/soup-socket.h (soup_socket_new): use G_GNUC_NULL_TERMINATED.

* libsoup/soup-types.h (G_GNUC_NULL_TERMINATED): steal the
definition of this from glib 2.8 for use when compiling against
glib 2.6.

18 years agoFix compilation errors.
Tambet Ingo [Mon, 15 Aug 2005 11:25:04 +0000 (11:25 +0000)]
Fix compilation errors.

2005-08-15  Tambet Ingo  <tambet@ximian.com>

* libsoup/soup-socket.c (update_fdflags, set_property): Fix compilation
errors.

* libsoup/soup-server.c (soup_server_get_listener): ditto.

18 years agonew method to get the server's listening socket.
Dan Winship [Fri, 12 Aug 2005 14:20:35 +0000 (14:20 +0000)]
new method to get the server's listening socket.

* libsoup/soup-server.c (soup_server_get_listener): new method to
get the server's listening socket.

* libsoup/soup-socket.c: add a new "cloexec" property, to set
FD_CLOEXEC on the socket. Update everything for that.

19 years agoFree priv->read_buf. From Tambet. (soup_socket_connect): Make sure that
Dan Winship [Fri, 5 Aug 2005 14:59:35 +0000 (14:59 +0000)]
Free priv->read_buf. From Tambet. (soup_socket_connect): Make sure that

* libsoup/soup-socket.c (finalize): Free priv->read_buf. From
Tambet.
(soup_socket_connect): Make sure that get_iochannel() gets called
if the connect succeeds right away, or the socket will fail on
the first read or write. [#312540]

19 years agodrop version back down to 2.2.5 and SOUP_API_VERSION back to 2.2; due to LIBSOUP_2_2_5
Dan Winship [Mon, 1 Aug 2005 14:59:53 +0000 (14:59 +0000)]
drop version back down to 2.2.5 and SOUP_API_VERSION back to 2.2; due to

* configure.in: drop version back down to 2.2.5 and
SOUP_API_VERSION back to 2.2; due to various snafus, there has
never yet been an official release of the 2.4 API and the GNOME
2.12 betas have been shipping with libsoup 2.2 tarballs (while
jhbuild has been using 2.4, with evolution and related packages
having configure hacks to build against either). As there never
ended up being any API-incompatible changes in the 2.4 series, we
can just merge it back into the 2.2 series and kill off 2.4.

* NEWS: Copy in the 2.2-series news from the gnome-2-10 branch,
and add new NEWS

* libsoup-zip.in: s/2.2/@SOUP_API_VERSION@/

* libsoup/Makefile.am (libsoupincludedir, lib_LTLIBRARIES,
libsoup_2_2_la_LDFLAGS, libsoup_2_2_la_LIBADD,
libsoup_2_2_la_SOURCES): s/4/2/ in all the places automake won't
let us use a variable.

19 years agoFinalize a SoupMD5Context and write out the digest in hex digits.
Dan Winship [Mon, 1 Aug 2005 14:48:22 +0000 (14:48 +0000)]
Finalize a SoupMD5Context and write out the digest in hex digits.

* libsoup/soup-md5-utils.c (soup_md5_final_hex): Finalize a
SoupMD5Context and write out the digest in hex digits.

* libsoup/soup-auth-digest.c (authenticate, compute_response):
* libsoup/soup-server-auth.c (check_digest_passwd): Use that,
rather than duplicating the code in both places here.

Patch from Wim Lewis.

19 years agoAllow relative URIs, since some servers are lame. Based on a patch from
Dan Winship [Fri, 15 Jul 2005 17:53:11 +0000 (17:53 +0000)]
Allow relative URIs, since some servers are lame. Based on a patch from

* libsoup/soup-session.c (redirect_handler): Allow relative URIs,
since some servers are lame. Based on a patch from Jean-Yves
Lefort. [#270688]

* tests/uri-parsing.c: add some more tests to make sure that
things that should be %-escaped do get %-escaped

19 years agoMention in the doc comment that gmtime() is thread-safe on Windows.
Tor Lillqvist [Wed, 6 Jul 2005 09:54:41 +0000 (09:54 +0000)]
Mention in the doc comment that gmtime() is thread-safe on Windows.

2005-07-06  Tor Lillqvist  <tml@novell.com>

* libsoup/soup-date.c (soup_gmtime): Mention in the doc comment
that gmtime() is thread-safe on Windows.
(soup_date_generate): Use soup_gmtime() instead of gmtime_r().

19 years agocheck for gmtime_r
Dan Winship [Tue, 14 Jun 2005 16:40:23 +0000 (16:40 +0000)]
check for gmtime_r

* configure.in: check for gmtime_r

* libsoup/soup-date.c: date/time-manipulation functions

* libsoup/soup-xmlrpc-message.c:
* libsoup/soup-xmlrpc-response.c: XMLRPC message classes, from
Mariano Suarez-Alvarez, Fernando Herrera, and Jeff Bailey.
[#300227]

* tests/date.c: soup-date test code

* tests/getbug.c: XMLRPC test code. (Should be switched to use
bugzilla.gnome.org once bgo supports XMLRPC.)

* TODO: XMLRPC is implemented now (but shares the problem with
SOAP that the API is not very good).

19 years agoadd/fix gtk-doc comments, make functions match prototypes, etc
Dan Winship [Tue, 14 Jun 2005 15:34:22 +0000 (15:34 +0000)]
add/fix gtk-doc comments, make functions match prototypes, etc

* libsoup/*.[ch]: add/fix gtk-doc comments, make functions match
prototypes, etc

* docs/reference/*: update, fix, etc

19 years agoCheck also for inet_ntop(). Pre-cache knowledge that we do have
Tor Lillqvist [Tue, 14 Jun 2005 09:02:29 +0000 (09:02 +0000)]
Check also for inet_ntop(). Pre-cache knowledge that we do have

2005-06-13  Tor Lillqvist  <tml@novell.com>

* configure.in: Check also for inet_ntop(). Pre-cache knowledge
that we do have inet_pton() and inet_ntop() on Windows (because we
implement them ourselves in soup-dns.c).

* libsoup/soup-dns.c (inet_pton, inet_ntop): Fix the Win32
implementations, they were completely bogus.
(soup_dns_ntop): Make it compile if HAVE_INET_NTOP.

19 years agoFix this to use just the domain name for the domain, not the whole
Dan Winship [Wed, 8 Jun 2005 14:35:47 +0000 (14:35 +0000)]
Fix this to use just the domain name for the domain, not the whole

* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Fix this to
use just the domain name for the domain, not the whole
DOMAIN\username. Based on a patch by Jeroen Hautekeete in #306877.

19 years agolock host_lock around this, since it can be called from set_property().
Dan Winship [Tue, 7 Jun 2005 14:18:07 +0000 (14:18 +0000)]
lock host_lock around this, since it can be called from set_property().

        * libsoup/soup-session.c (cleanup_hosts): lock host_lock around
        this, since it can be called from set_property(). Possible fix for
        bnc #81641.

19 years agoUse --type-init-func to force g_thread_init to be called. [#302674]
Dan Winship [Thu, 5 May 2005 13:47:53 +0000 (13:47 +0000)]
Use --type-init-func to force g_thread_init to be called. [#302674]

* docs/reference/Makefile.am (SCANGOBJ_OPTIONS): Use
--type-init-func to force g_thread_init to be called. [#302674]

19 years agoignore libsoup-zip
Dan Winship [Mon, 2 May 2005 14:51:58 +0000 (14:51 +0000)]
ignore libsoup-zip

19 years agoCall AC_LIBTOOL_WIN32_DLL. Check for Win32, set Automake conditional
Tor Lillqvist [Tue, 19 Apr 2005 06:21:32 +0000 (06:21 +0000)]
Call AC_LIBTOOL_WIN32_DLL. Check for Win32, set Automake conditional

2005-04-18  Tor Lillqvist  <tml@novell.com>

* configure.in: Call AC_LIBTOOL_WIN32_DLL. Check for Win32, set
Automake conditional OS_WIN32. Pre-cache information that we do
have getaddrinfo(), getnameinfo(), and IPv6 on Win32. (The tests
wouldn't notice as they don't include the necessary headers or
link with -lws2_32. Easiest to just pre-cache it.)

* libsoup-zip.in: New file, to build zipfile-based distribution of
libsoup for Win32.

* Makefile.am (EXTRA_DIST)
* configure.in (AC_OUTPUT): Add libsoup-zip(.in).

* libsoup/Makefile.am: Use -no-undefined on Win32. Link with
WinSock library -lws2_32.

* libsoup/soup-portability.h: New file. On Unix it includes the
traditional BSD socket etc headers. On Win32 it includes
winsock2.h and ws2tcpip.h.

* libsoup/*.c
* libsoup/*.h: Correspondingly, don't include the BSD socket API
headers directly.

* libsoup/soup-address.h
* libsoup/soup-dns.h: Include soup-portability.h

* libsoup/soup-address.c (soup_address_class_init): This function
should get called before libsoup uses the WinSock API, so this is
a good place to call WSAStartup().

* libsoup/soup-auth-digest.c (get_protection_space): Use
g_strsplit() instead of the relatively unportable strtok_r().

* libsoup/soun-dns.c: Remove unused headers. Implement
inet_pton() and inet_ntop() on Win32 using WSAStringToAddress()
and WSAAddressToString().

* libsoup/soup-socket.c (SOUP_CLOSE_SOCKET, SOUP_IS_SOCKET_ERROR,
SOUP_IS_INVALID_SOCKET, SOUP_IS_CONNECT_STATUS_INPROGRESS):
Portability macros.
(soup_socket_class_init): Call soup_address_get_type() to make
sure WSAStartup() gets called (through soup_address_class_init()).
(update_fdflags): Use ioctlsocket(FIONBIO) on Win32.
(soup_socket_write): Conditionalize SIGPIPE use.

* tests/get.c: mkdir() is different in Microsoft's C library.

* tests/simple-httpd.c: Rename TRY_AGAIN label to AGAIN to avoid
some clash with winsock2.h (which includes windows.h). The Win32
headers pollute the namespace wildly.

19 years agomake this work with pre-EAI_OVERFLOW glibc [#300620]
Dan Winship [Fri, 15 Apr 2005 13:47:48 +0000 (13:47 +0000)]
make this work with pre-EAI_OVERFLOW glibc [#300620]

* libsoup/soup-dns.c (resolve_name): make this work with
pre-EAI_OVERFLOW glibc [#300620]

19 years agoupdate
Dan Winship [Thu, 14 Apr 2005 20:38:23 +0000 (20:38 +0000)]
update

19 years agoRemove the various gethostbyname_r checks and just check for
Dan Winship [Tue, 12 Apr 2005 19:18:46 +0000 (19:18 +0000)]
Remove the various gethostbyname_r checks and just check for

* configure.in: Remove the various gethostbyname_r checks and just
check for getnameinfo/getaddrinfo.

* libsoup/soup-dns.c: de-nastify. Make this use threads instead of
forking. Change the API around a bunch in the process.

* libsoup/soup-address.c: Update for soup-dns changes

* tests/dns.c: take multiple hostnames on the command line and
resolve them all at once (patch from tml)

19 years agorequire glib-2.0 >= 2.4.0
Dan Winship [Mon, 11 Apr 2005 20:42:07 +0000 (20:42 +0000)]
require glib-2.0 >= 2.4.0

* configure.in: require glib-2.0 >= 2.4.0

* libsoup/*.c: use G_DEFINE_TYPE and
g_type_class_add_private/G_TYPE_INSTANCE_GET_PRIVATE

* libsoup/soup-types.h: kill SOUP_MAKE_TYPE and
SOUP_MAKE_TYPE_WITH_IFACE

* tests/revserver.c: use GThread. (patch from tml)