]> spindle.queued.net Git - midori/commitdiff
Use 60 connections and 6 per host, like unstable WebKit
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Mar 2011 19:51:13 +0000 (20:51 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 13 Mar 2011 19:51:13 +0000 (20:51 +0100)
midori/main.c

index 5ce2c2bdeafb59afe6d924903f9717f62664eedd..c274fe1aa88d00e8dcccb7a40f13a1b89bfe5b3d 100644 (file)
@@ -929,6 +929,13 @@ midori_soup_session_prepare (SoupSession*       session,
                      "SSL certificates cannot be verified."));
     #endif
 
+    #if !WEBKIT_CHECK_VERSION (1, 3, 5)
+    /* See http://stevesouders.com/ua/index.php */
+    g_object_set (session, "max-conns", 60,
+                           "max-conns-per-host", 6,
+                           NULL);
+    #endif
+
     soup_session_settings_notify_http_proxy_cb (settings, NULL, session);
     g_signal_connect (settings, "notify::http-proxy",
         G_CALLBACK (soup_session_settings_notify_http_proxy_cb), session);