| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Check if the message was cancelled before the request is sent.
|
| |
|
|
|
|
| |
This reverts commit 517eb93f33e3d5dcf7ba059608114fc9e36b62af.
|
|
|
|
| |
This reverts commit b9f4f0367704e4d7f6004645c24887a979014f10.
|
|
|
|
| |
This reverts commit a15107a70b4b2b0b5bda241f037d09af403db96e.
|
|
|
|
| |
This might fix #342
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This helps in identifying what’s attached to a `GMainContext` when
debugging runtime problems with libsoup.
The names added in `soup-misc.c` are fairly rough; if they turn out to
not be specific enough, those methods could be changed to accept a
`const gchar *name` argument so the caller can provide a more specific
name.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|
|
|
|
|
|
| |
This makes it easier to identify what a `GTask` instance is when
debugging a running process.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GLib 2.76 emits a warning if `g_string_free (_, FALSE)` is used without
using its return value, as it typically signifies a leak:
```
warning: ignoring return value of ‘g_string_free_and_steal’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
```
In this case, the libsoup example and test code did *not* leak because
it had already stolen the string data from `GString`. That’s a bit of a
layering violation (the string data briefly has two owners), so
rearrange the code to fix that and silence the warning.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|
|
|
| |
This can happen now that we are handling the cancellation earlier.
|
|
|
|
| |
Check if the message was cancelled on every queue state loop iteration.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes: 25e96cad913cde650ca56ff76c3924fd97eb7125
|
|
|
|
| |
Fixes #335
|
|
|
|
| |
Closes #334
|
| |
|
| |
|
|
|
|
|
|
|
| |
When skipping the response body the given buffer is NULL, which is
not handled for chunked enconding when reading the trailers.
Fixes #323
|
|
|
|
|
|
| |
This way we release the connection earlier, since other requests might
be waiting for the connection. We can also remove manual loop iterations
in the tests after a request is done.
|
| |
|
|
|
|
|
| |
The documentation for soup_cookie_jar_add_cookie_full() states
NULL uris are always treated as a secure origin.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This way also the libsoup library users can force HTTP/1 version
only for some messages, not for the whole process (through
the environment variable).
Closes https://gitlab.gnome.org/GNOME/libsoup/-/issues/261
|
|
|
|
|
|
| |
The environment variables usually do not change during runtime,
it's unexpected even for this semi-debugging variable, thus
let it be read only once and the result being used repeatedly.
|
|
|
|
| |
And with the connection manager mutex locked.
|
|
|
|
|
|
| |
The cookies spec defines whitespace as that. Previously
we handled everything `isspace()` considered whitespace
such as newlines which is incorrect.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is a spec that Firefox and Chrome implement:
https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00
Closes #349
Closes #326
Co-authored-by: Patrick Griffis <pgriffis@igalia.com>
|
|
|
|
| |
Closes #290
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Dependency names need to match the namespace name exactly (including
capitalization) otherwise they won't be shown as dependencies.
|
| |
|
|
|
|
|
|
|
|
|
| |
soup_message_new_from_uri() raises a critical if SOUP_URI_IS_VALID
returns FALSE. This macro also checks if the URI host is not an empty
string, which was not checked in the caller code.
Fix critical when running such GStreamer pipeline:
gst-launch-1.0 souphttpsrc location=http:///not-there.ogg ! fakesink
|
|
|
|
|
|
| |
It can be used to monitor the progress of the read operation.
Fixes #319
|
|
|
|
| |
Fixes #322
|
| |
|
|
|
|
|
|
|
| |
The GHashTable is not thread safe, thus add a thread safety around it,
to avoid issues when it's accessed from multiple threads at the same time.
Closes https://gitlab.gnome.org/GNOME/libsoup/-/issues/317
|
|
|
|
|
|
|
| |
soup_session_send_and_splice_async()
This is convenient API for reading the request body stream and writing
it to an output stream.
|
|
|
|
|
|
|
|
|
| |
The initial message contains a cycle-reference to the connection. We
need to decrement the reference in order to properly clean up the
connection.
Before this patch, it was possible SoupServerConnection-finalize was
never called. This was causing a memory leak (and socket FD leak).
|