| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make SoupAddress keep track of multiple IP addresses and implement
GSocketConnectable, and make SoupSocket use GSocketClient (and thus
GSocketAddressEnumerator) to connect, so that it tries all addresses
associated with the SoupAddress.
In particular, this fixes the bug where if a host has both IPv4 and
IPv6 addresses, and glibc thinks you have IPv6 connectivity, but you
don't really, that libsoup can't connect to that host.
(Using GSocketClient rather than using GSocketAddressEnumerator
directly is a bit heavyweight for SoupSocket, since we don't actually
want to have a GSocket or GSocketConnection. But eventually, we will
be porting SoupSocket to use GSocket, and this code is a stepping
stone to that. Also, letting GSocketClient do the looping over the
addresses simplifies SoupSocket.)
(This change also silently breaks connection timeouts unless you have
the very latest git glib.)
https://bugzilla.gnome.org/show_bug.cgi?id=526321
|
| |
|
| |
|
|
|
|
|
|
| |
Also, simply the suppressions file by using the "..." syntax, which I
think didn't exist (or at least wasn't documented) when I first
created it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-message-headers.c (set_content_foo): don't leak the
header string
* libsoup/soup-multipart.c (generate_boundary): avoid a (harmless)
valgrind warning
* libsoup/soup-proxy-resolver-static.c (get_proxy_sync): don't
leak the address on error
* libsoup/soup-session-sync.c (wait_for_connection): don't leak
proxy_addr
* tests/misc-test.c: don't leak the SoupMessage signal ids
* tests/range-test.c (main): don't leak base_uri
* tests/libsoup.supp: update this using lots and lots of wildcards
svn path=/trunk/; revision=1197
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-xmlrpc.c (parse_value):
soup_value_hash_insert_value() copies the value, so we have to
g_value_unset() our copy.
* tests/chunk-test.c:
* tests/misc-test.c:
* tests/ntlm-test.c: fix leaks
* tests/libsoup.supp: update
svn path=/trunk/; revision=1169
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-dns.c (resolver_thread): fix mutex use to avoid a
race condition
* libsoup/soup-xmlrpc.c (soup_xmlrpc_build_faultv):
(soup_xmlrpc_set_response, soup_xmlrpc_set_fault):
(soup_xmlrpc_parse_method_call): Fix misc server-side stuff
(soup_xmlrpc_parse_method_response): Fix fault parsing
* libsoup/soup-xmlrpc.h (SoupXMLRPCFault): add semi-standard fault
codes from
http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
* tests/xmlrpc-server.php (sum): return a <fault> if the arguments
are wrong (so that xmlrpc-test can test that case).
(dateChange): change to take two parameters, a date and a struct,
instead of putting the date in the struct, since we weren't
previously testing multiple parameter handling.
* tests/xmlrpc-test.c (main): Add a -u flag to specify an
alternate URL.
(do_xmlrpc): Remove level 3 debug output, which is now redundant
with the SoupLogger stuff.
(test_dateChange): update for dateChange prototype change
(test_fault_malformed, test_fault_method, test_fault_args): test
handling of faults
* tests/xmlrpc-server-test.c: Test the server-side XML-RPC API (by
implementing the same methods as xmlrpc-server.php and then
using xmlrpc-test)
svn path=/trunk/; revision=1056
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-headers.c (soup_header_parse_quality_list): fix to
not sometimes read beyond the end of the string.
* libsoup/soup-message-body.c (soup_message_body_append): When
appending a 0-length SOUP_MEMORY_TAKE buffer, we need to free the
passed-in buffer rather than just ignoring it.
* libsoup/soup-server.c (got_headers): fix leak when decoding path
* libsoup/soup-session.c (finalize): free ntlm_manager
* tests/libsoup.supp: update for libsoup 2.4, glib 2.14, etc
* tests/header-parsing.c (do_qvalue_tests):
* tests/uri-parsing.c (main): more cleanup
svn path=/trunk/; revision=1055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-connection.c (soup_connection_connect_async): don't
leak the SoupAddress.
* libsoup/soup-dns.c (soup_dns_lookup_resolve_async): fix a leak
when re-looking up an address
* libsoup/soup-session.c (soup_session_abort): close all
connections in addition to cancelling messages (needed because
connections currently end up holding a ref on their session,
preventing them from being destroyed).
* tests/auth-test.c:
* tests/ntlm-test.c:
* tests/proxy-test.c:
* tests/pull-api.c:
* tests/ssl-test.c:
* tests/xmlrpc-test.c: clean up more memory on exit, to help find
leaks in the library
* tests/libsoup.supp: add a zillion new suppressions so we
can use --leak-resolution=med
svn path=/trunk/; revision=953
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-session.c (finalize): free proxy-related stuff
* libsoup/soup-session-async.c (idle_run_queue): clean up the weak
pointer
* tests/*.c: fix leaks
svn path=/trunk/; revision=946
|
|
* libsoup/soup-address.c (update_address_from_entry): free the
hostent.
* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't leak
the domain
* libsoup/soup-gnutls.c (soup_gnutls_get_iochannel): Add some more
iochannel initialization. Not sure how this worked before...
* libsoup/soup-message.c (soup_message_cleanup_response): Renamed
from soup_message_prepare (and a few things removed).
* libsoup/soup-message-client-io.c (soup_message_send_request):
s/soup_message_prepare/soup_message_cleanup_response/
* libsoup/soup-message-io.c (io_read): Replace the final "\r\n"
with "\0" on the headers before passing them to the parse
function.
(io_read): Call soup_message_cleanup_response after returning an
informational response so the data doesn't leak.
* libsoup/soup-headers.c (soup_headers_parse): Update for
soup-message-io.c:io_read change
* libsoup/soup-server.c (soup_server_new,
soup_server_new_with_host): Don't leak the SoupAddress.
* libsoup/soup-session.c (class_init): Make PROP_PROXY_URI not
CONSTRUCT_ONLY.
(set_property): If the proxy uri changes, call
soup_session_abort() and cleanup_hosts().
(request_finished, final_finished): Fix a bug when requeuing
messages.
* tests/libsoup.supp: valgrind suppression file for soup tests
* tests/Makefile.am (EXTRA_DIST): dist it.
(noinst_PROGRAMS): move the former check_PROGRAMS to
noinst_PROGRAMS instead.
|