From 9ee6e693fe52779f8d4831cd02adb5deccf4a874 Mon Sep 17 00:00:00 2001 From: chengdu <3281328128@qq.com> Date: Sat, 13 Jul 2019 18:24:11 +0800 Subject: [PATCH] client close socket --- src/main/java/org/csource/fastdfs/StorageClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/csource/fastdfs/StorageClient.java b/src/main/java/org/csource/fastdfs/StorageClient.java index 0d3fae8..ec4cb7b 100644 --- a/src/main/java/org/csource/fastdfs/StorageClient.java +++ b/src/main/java/org/csource/fastdfs/StorageClient.java @@ -1756,6 +1756,10 @@ public class StorageClient { return trackerServer.isAvaliable(); } + public void close() throws IOException { + trackerServer.close(); + } + /** * Upload file by file buff *