[evolution-data-server/gnome-2-30] Bug #623936 - 75 second delay when creating new DAV entries in Zimbra
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Bug #623936 - 75 second delay when creating new DAV entries in Zimbra
- Date: Mon, 12 Jul 2010 14:17:57 +0000 (UTC)
commit 42caa8c21d28b89ab40d38b520e1cb9937a34e1b
Author: Milan Crha <mcrha redhat com>
Date: Mon Jul 12 16:17:19 2010 +0200
Bug #623936 - 75 second delay when creating new DAV entries in Zimbra
.../backends/webdav/e-book-backend-webdav.c | 16 ++++++++--------
calendar/backends/caldav/e-cal-backend-caldav.c | 3 +++
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/addressbook/backends/webdav/e-book-backend-webdav.c b/addressbook/backends/webdav/e-book-backend-webdav.c
index b851b1e..2ba4536 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -137,8 +137,8 @@ download_contact(EBookBackendWebdav *webdav, const gchar *uri)
guint status;
message = soup_message_new(SOUP_METHOD_GET, uri);
- soup_message_headers_append(message->request_headers,
- "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "Connection", "close");
status = soup_session_send_message(webdav->priv->session, message);
if (status != 200) {
@@ -198,8 +198,8 @@ upload_contact(EBookBackendWebdav *webdav, EContact *contact)
}
message = soup_message_new(SOUP_METHOD_PUT, uri);
- soup_message_headers_append(message->request_headers,
- "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "Connection", "close");
property = e_source_get_property(source, "avoid_ifmatch");
if (property != NULL && strcmp(property, "1") == 0) {
@@ -362,8 +362,8 @@ delete_contact(EBookBackendWebdav *webdav, const gchar *uri)
guint status;
message = soup_message_new(SOUP_METHOD_DELETE, uri);
- soup_message_headers_append(message->request_headers,
- "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "Connection", "close");
status = soup_session_send_message(webdav->priv->session, message);
g_object_unref(message);
@@ -656,8 +656,8 @@ send_propfind(EBookBackendWebdav *webdav)
"<propfind xmlns=\"DAV:\"><prop><getetag/></prop></propfind>";
message = soup_message_new(SOUP_METHOD_PROPFIND, priv->uri);
- soup_message_headers_append(message->request_headers,
- "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "User-Agent", USERAGENT);
+ soup_message_headers_append (message->request_headers, "Connection", "close");
soup_message_headers_append(message->request_headers, "Depth", "1");
soup_message_set_request(message, "text/xml", SOUP_MEMORY_TEMPORARY,
(gchar *) request, strlen(request));
diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index 41c898d..5e7ecc4 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -889,11 +889,14 @@ send_and_handle_redirection (SoupSession *soup_session, SoupMessage *msg, gchar
{
gchar *old_uri = NULL;
+ g_return_if_fail (msg != NULL);
+
if (new_location)
old_uri = soup_uri_to_string (soup_message_get_uri (msg), FALSE);
soup_message_set_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
soup_message_add_header_handler (msg, "got_body", "Location", G_CALLBACK (redirect_handler), soup_session);
+ soup_message_headers_append (msg->request_headers, "Connection", "close");
soup_session_send_message (soup_session, msg);
if (new_location) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]