GNOME Bugzilla – Bug 750936
Port to new SoupSession breaks synchronous self-introspection and signal autoconnect
Last modified: 2015-07-11 22:18:52 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).
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>
Attachment 307301 [details] pushed as 83013f6 - Fix signals_autoconnect() call