After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750936 - Port to new SoupSession breaks synchronous self-introspection and signal autoconnect
Port to new SoupSession breaks synchronous self-introspection and signal auto...
Status: RESOLVED FIXED
Product: GUPnP
Classification: Other
Component: gupnp
0.20.x
Other Linux
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-14 14:48 UTC by Jens Georg
Modified: 2015-07-11 22:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix signals_autoconnect() call (5.58 KB, patch)
2015-07-11 21:42 UTC, Jens Georg
committed Details | Review

Description Jens Georg 2015-06-14 14:48:07 UTC
Porting away from SoupSessionAsync made soup_session_send_message block the whole server, so it is now impossible to do self-introspection beacause of this note in the Soup porting guide:

Differences in SoupMessage-sending APIs

SoupSessionAsync always uses asynchronous I/O, and SoupSessionSync always uses blocking I/O, regardless of the operation. In the new SoupSession, soup_session_queue_message() uses asynchronous I/O (like SoupSessionAsync), and soup_session_send_message() uses blocking I/O (like SoupSessionSync). There is no API on the plain SoupSession that simulates the effect of calling soup_session_send_message() on a SoupSessionAsync (ie, running the main loop internally), or of calling soup_session_queue_message() on a SoupSessionSync (ie, automatically sending the request in another thread).
Comment 1 Jens Georg 2015-07-11 21:42:41 UTC
Created attachment 307301 [details] [review]
Fix signals_autoconnect() call

Use the introspection we get from the constructor, queue the autoconnects
until this is ready. Also mark _get_instrospection() as deprecated.

Signed-off-by: Jens Georg <mail@jensge.org>
Comment 2 Jens Georg 2015-07-11 22:18:48 UTC
Attachment 307301 [details] pushed as 83013f6 - Fix signals_autoconnect() call