Be more aggressive about closing unused persistent connections
authorDan Winship <danw@src.gnome.org>
Thu, 3 Apr 2008 23:58:38 +0000 (23:58 +0000)
committerDan Winship <danw@src.gnome.org>
Thu, 3 Apr 2008 23:58:38 +0000 (23:58 +0000)
commit0fe9af2d15c4bc8dcd3413ace0c8e3f6dbe4b487
tree27cbcf16d72c94a20cf148930cd453c518011188
parent4b7d4b0a47c007fbbb3478e1b1619890ed1b545f
Be more aggressive about closing unused persistent connections
when needed, to avoid slow load times in WebKit.

* libsoup/soup-session-async.c (run_queue): Remove the
"try_pruning" flag from here and from all the callers, and
*always* try pruning idle connections if it would help.

* libsoup/soup-session.c (soup_session_try_prune_connection):
Rather than only closing a single connection, close all idle
connections.

svn path=/trunk/; revision=1119
ChangeLog
libsoup/soup-session-async.c
libsoup/soup-session.c