关闭 socket

dev
chengdu 2019-07-13 18:13:30 +08:00
parent 6311c74414
commit d73133267b
1 changed files with 13 additions and 14 deletions

View File

@ -36,20 +36,19 @@ public class FdfsTest {
storageClient = new StorageClient(trackerServer, storageServer);
}
// @After
// public void closeClient() {
// LOGGER.info("close connection");
// if(trackerServer != null){
// try {
// trackerServer.close();
// trackerServer.finalize();
// }catch (Exception e){
// e.printStackTrace();
// }catch (Throwable e){
// e.printStackTrace();
// }
// }
// }
@After
public void closeClient() {
LOGGER.info("close connection");
if(trackerServer != null){
try {
trackerServer.finalize();
}catch (Exception e){
e.printStackTrace();
}catch (Throwable e){
e.printStackTrace();
}
}
}
public void writeByteToFile(byte[] fbyte, String fileName) throws IOException {
BufferedOutputStream bos = null;