GNOME Bugzilla – Bug 764057
Add soup_socket_listen_full() to propagate errors
Last modified: 2016-04-25 20:57:53 UTC
Otherwise functions like soup_server_listen_all() don't return an appropriate error when things fail.
Created attachment 324573 [details] [review] Add SOUP_AVAILABLE_IN_2_56 definition for new APIs
Created attachment 324574 [details] [review] Add soup_socket_listen_full() API which returns an error The fact that soup_socket_listen() doesn't return a proper error masks real failure modes.
Created attachment 324575 [details] [review] Use soup_socket_listen_full() internally to propagate errors Otherwise functions like soup_server_listen_all() don't return an appropriate error when things fail.
Comment on attachment 324574 [details] [review] Add soup_socket_listen_full() API which returns an error SoupSocket is deprecated-ish and API-frozen; any new APIs needed internally should be added to soup-socket-private.h.
Comment on attachment 324573 [details] [review] Add SOUP_AVAILABLE_IN_2_56 definition for new APIs This needs SOUP_VERSION_2_56 and SOUP_DEPRECATED_IN_2_56 too, but since we won't actually be adding any new public API, let's just drop this patch and then this can go into both master and stable. (Meaning "we don't have to branch yet".)
Created attachment 324590 [details] [review] Add soup_socket_listen_full() internal API which returns an error The fact that soup_socket_listen() doesn't return a proper error masks real failure modes.
Attachment 324575 [details] pushed as c1866cc - Use soup_socket_listen_full() internally to propagate errors Attachment 324590 [details] pushed as 9d42006 - Add soup_socket_listen_full() internal API which returns an error