| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
We cannot trust the received closing code sent by the peer and
we should validate it before trying to call the close method.
This fixes an assertion on the tests 7.9.* of autobahn:
See https://github.com/crossbario/autobahn-testsuite
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This class doesn't do much if LIBSOUP_HAVE_GSSAPI is not defined, but
the type itself still needs to exist, or (among other things) the
introspection build will fail.
bd93c273ea787df4f3fe03c9cf6c8e53d8fc5fc9 broke that, by making the
G_DEFINE_TYPE() condition on #ifdef LIBSOUP_HAVE_GSSAPI. This was done
because the Private struct contains gss types.
Reorder things a bit to make sure we always do the G_DEFINE_TYPE() even
if we have no GSSAPI.
https://bugzilla.gnome.org/show_bug.cgi?id=774189
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775579
|
|
|
|
|
| |
Now only SoupMessage is missing since the private from this class
is accessed from other classes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add SOUP_MESSAGE_DO_NOT_USE_AUTH_CACHE new flag to tell the
SoupAuthManager that it shoudn't use cached credentials to authenticate a
particular message, and that credentials shouldn't be cached either
after a successful authentication.
When SOUP_MESSAGE_DO_NOT_USE_AUTH_CACHE flag is present for a message,
we never query the cached credentials on message starting callback, so
that the SoupAuth is not set there. The SoupAuth is now always set on
the message after authenticate, and the Authorization header updated
right before the message is re-queued when SOUP_MESSAGE_DO_NOT_USE_AUTH_CACHE
is used.
This patch also updates soup_message_set_auth() to no longer update the
Authorization header, but just set the SoupAuth handling the case of
setting the same SoupAuth twice.
https://bugzilla.gnome.org/show_bug.cgi?id=774033
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
priv->run_queue_sources was un-thread-safe in multiple ways. Now:
1. We pass idle_run_queue() a GWeakRef to the SoupSession, rather than
the SoupSession itself. So now it's not possible for the session to
get disposed in another thread while idle_run_queue() is running,
and it's safe to let the callback get run even after the session is
freed.
2. The idle_run_queue() source is given a GDestroyNotify, so it can
clean up the weakref even if the source is destroyed behind
the session's back.
3. Since we no longer have to forcibly destroy the sources when the
session is destroyed, and we don't have to manually clean up after
them if they don't get run, we no longer have to explicitly
remember the sources after creating them, and so we don't even need
priv->run_queue_sources. However, we do still want to make sure
that there's only ever one pending idle_run_queue() source per
context (so we don't keep adding more and more if the context isn't
currently being run), so we add a new "async_pending" field to
SoupMessageQueueItem to keep track of that.
https://bugzilla.gnome.org/show_bug.cgi?id=768567
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=768567
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We cannot trust the client to be nice and stop sending data when
we are closing. If we receive a ping when closing the connection
we need to avoid trying to send data after that.
Change the code to be more robust and to not try to write in the socket
if we are in the closed state.
This fixes an assertion on the test 3.2 of autobahn:
See https://github.com/crossbario/autobahn-testsuite
https://bugzilla.gnome.org/show_bug.cgi?id=774957
|
| |
|
| |
|
|
|
|
|
|
|
| |
In WebKit, we need to clear the cached credentials. It's mainly used by
tests to ensure that auth tests are independent to each other.
https://bugzilla.gnome.org/show_bug.cgi?id=774031
|
|
|
|
|
|
|
|
| |
We are already depending on the a newly enough glib so
we are now allowed to clean up a bit and use the new private
api.
https://bugzilla.gnome.org/show_bug.cgi?id=774189
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This will send ping messages in that interval of time so the connection
is kept alive.
https://bugzilla.gnome.org/show_bug.cgi?id=773253
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772217
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After setting the "proxy-uri" property on a SoupSession with embedded
basic auth (e.g. http://user:pass@example.com), libsoup does not make
use of the auth and ends up emitting an "authenticate" signal on
receiving 407. Calling soup_auth_anthenticate() with the same
credentials then works, but it should've made use of the auth from the
beginning to avoid the round trip.
This seems to be a regression from fb09bf93
(https://bugzilla.gnome.org/show_bug.cgi?id=680273), during the
transition to GSimpleProxyResolver. The issue is that libsoup uses
`soup_uri_to_string_internal`, which doesn't embed the password in the
resulting string.
The attached patch changes this, making sure to retain the previous
behaviour in all other cases.
https://bugzilla.gnome.org/show_bug.cgi?id=772932
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=773251
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=773177
|
|
|
|
|
| |
This is to ensure that the changes in the generated build/win32/vs10/soup-install.props
is applied to the soup-install.props's in build/win32/vs[11|12|14].
|
|
|
|
|
|
|
|
|
|
|
| |
Make the Makefile.am targets for generating the Visual Studio projects re-generate the
project files and the header listings whenever the Makefile.am's that include
build/Makefile.msvcproj changes, so that whenever a source/header is added, they will
be reflected in the projects and in the property sheets that are used to copy the
headers.
Also ensure that these are applied to the vs11, vs12 and vs14 projects when this
happens, as they are copied and processed from the Visual Studio 2010 projects.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The current documentation is extremely misleading, implying here that
the host portion of the URI is always nonnull, which isn't true.
https://bugzilla.gnome.org/show_bug.cgi?id=772891
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
We need the version header file when generating the introspection data.
https://bugzilla.gnome.org/show_bug.cgi?id=771439
|
| |
|
| |
|
|
|
|
|
|
|
| |
This allows to change the limit for the payload of websocket packets.
Also add the corresponding unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=770022
|
| |
|
| |
|
|
|
|
| |
This adds support for lcov 1.12, as used in Fedora 24.
|
|
|
|
| |
Future versions of gettext will fail if this header is missing.
|
|
|
|
|
|
| |
This fixes missing includes problem on FreeBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=765376
|
|
|
|
|
|
| |
By creating the properties level and max-body-size.
Closes #768053.
|
|
|
|
|
| |
The arguments ssl_key_file/ssl_cert_file was never copied to
SoupServerPrivate causing latter SSL logic to use NULL values.
|
|
|
|
|
|
|
|
|
|
| |
glibc defines EOF as a macro, so we cannot use that as the name for a
signal ID enum entry, otherwise it will be preprocessed to some number
if we end up with the wrong header included, and compilation will fail.
Instead, prefix signal ID enum entries with ‘SIGNAL_’ in
SoupCacheClientInputStream and SoupClientInputStream.
https://bugzilla.gnome.org/show_bug.cgi?id=768731
|
|
|
|
|
|
|
|
| |
I'm trying to debug an ostree issue with client cert interaction with
a specific server, and it's easier to drop ostree out of the picture
and use this libsoup equivalent of `curl`.
https://bugzilla.gnome.org/show_bug.cgi?id=768524
|
|
|
|
|
|
|
|
| |
The new XMLRPC code didn't parse <double>s correctly, which we didn't
notice because the test cases don't test <double> either. So fix the
code and the tests.
https://bugzilla.gnome.org/show_bug.cgi?id=767707
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Firefox and Chrome have both removed support for this. Fix your
server!
(This is still supported by SoupSocket, since removing that would be
an API break, but SoupSession never makes use of the feature now.)
https://bugzilla.gnome.org/show_bug.cgi?id=765940
|