[evolution-data-server/gnome-3-20] [Camel] Set default connection timeout to 90 seconds



commit 594c548fa822c5bf309799ee3c059bf56036eb9f
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 15 09:40:34 2016 +0200

    [Camel] Set default connection timeout to 90 seconds
    
    There is used 90 seconds timeout already for the response once
    the connection is established, but not when connecting to the server,
    where was used the default timeout. The problem is that the default
    timeout is no timeout at all, thus this could wait forever.

 camel/camel-network-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-network-service.c b/camel/camel-network-service.c
index 19f499a..1c5357f 100644
--- a/camel/camel-network-service.c
+++ b/camel/camel-network-service.c
@@ -537,6 +537,7 @@ network_service_connect_sync (CamelNetworkService *service,
        g_return_val_if_fail (connectable != NULL, NULL);
 
        client = g_socket_client_new ();
+       g_socket_client_set_timeout (client, 90);
 
        g_signal_connect (
                client, "event",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]