diff --git a/src/Couchbase/CouchbaseClient.cs b/src/Couchbase/CouchbaseClient.cs old mode 100644 new mode 100755 index 0d64a92..4b4d047 --- a/src/Couchbase/CouchbaseClient.cs +++ b/src/Couchbase/CouchbaseClient.cs @@ -43,6 +43,12 @@ namespace Couchbase /// The configuration is taken from the /configuration/Couchbase section. public CouchbaseClient() : this(DefaultConfig) { } + ~CouchbaseClient() + { + // On destruction explictly request a Dispose of the Pool, all associated sockets are now cleaned up. + this.Pool.Dispose(); + } + /// /// Initializes a new instance of the class using the default configuration and the specified bucket. ///