Commit 9da38618 authored by Zeeshan Ali (Khattak)'s avatar Zeeshan Ali (Khattak)
Browse files

Ask libsoup to timeout on blocking I/O

Although DLNA requirement 7.2.8.7 specifically states that we need to close the
socket if there is no pending requests on that, the DLNA CTT test case for
7.2.8.7 doesn't reply to our request and then wrongly assumes that we should be
closing the socket after 60 seconds even though there is a pending request on
the socket. Astonishingly the same test case for clients does the right thing.

Until the bug is resolved in DLNA CTT, we can temporarily work around the issue
by setting-up a timeout on blocking I/O as well.
parent 8af8cc86
......@@ -117,6 +117,7 @@ gupnp_service_get_session (GUPnPService *service)
*/
service->priv->session = soup_session_async_new_with_options
(SOUP_SESSION_IDLE_TIMEOUT, 60,
SOUP_SESSION_TIMEOUT, 60,
SOUP_SESSION_ASYNC_CONTEXT,
gssdp_client_get_main_context (GSSDP_CLIENT (context)),
SOUP_SESSION_MAX_CONNS_PER_HOST, 1,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment