[evolution-data-server] [Camel] Set default connection timeout to 90 seconds
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [Camel] Set default connection timeout to 90 seconds
- Date: Wed, 15 Jun 2016 07:41:50 +0000 (UTC)
commit 4d23a8124f979a979a671089f56c05635a70ede7
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 28b9d11..c2f6001 100644
--- a/camel/camel-network-service.c
+++ b/camel/camel-network-service.c
@@ -620,6 +620,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]