summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendftp.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-06-05 10:49:48 +0200
committerBenjamin Otte <otte@gnome.org>2009-06-11 10:05:40 +0200
commit4cebb73a48341b3695bc34750eab7290dc44b629 (patch)
treefb06e88430665061296ae83834f85999c78b1a37 /daemon/gvfsbackendftp.h
parent7428ea86b4c1f04ca6530d8eff4ca60cc8894f7e (diff)
downloadgvfs-4cebb73a48341b3695bc34750eab7290dc44b629.tar.gz
[FTP] keep list of busy connections
A busy connection is a connection that is currently used as a handle for a file transfer (upload or download). If all connections are busy, we can just return EBUSY instead of waiting for 30 seconds for a connection to become available. This is mostly useful for performance when there is a maximum of 1 connection to the server and this connection is busy transferring a file. Even gio functions like g_file_copy() sometimes do additional operations while transferring files. (It does a query_info for the progress callback.)
Diffstat (limited to 'daemon/gvfsbackendftp.h')
-rw-r--r--daemon/gvfsbackendftp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendftp.h b/daemon/gvfsbackendftp.h
index ae58f7b4..54ebb696 100644
--- a/daemon/gvfsbackendftp.h
+++ b/daemon/gvfsbackendftp.h
@@ -96,6 +96,7 @@ struct _GVfsBackendFtp
GCond * cond; /* cond used to signal tasks waiting on the mutex */
GQueue * queue; /* queue containing the connections */
guint connections; /* current number of connections */
+ guint busy_connections; /* current number of connections being used for reads/writes */
guint max_connections; /* upper server limit for number of connections - dynamically generated */
};