关闭 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); storageClient = new StorageClient(trackerServer, storageServer);
} }
// @After @After
// public void closeClient() { public void closeClient() {
// LOGGER.info("close connection"); LOGGER.info("close connection");
// if(trackerServer != null){ if(trackerServer != null){
// try { try {
// trackerServer.close(); trackerServer.finalize();
// trackerServer.finalize(); }catch (Exception e){
// }catch (Exception e){ e.printStackTrace();
// e.printStackTrace(); }catch (Throwable e){
// }catch (Throwable e){ e.printStackTrace();
// e.printStackTrace(); }
// } }
// } }
// }
public void writeByteToFile(byte[] fbyte, String fileName) throws IOException { public void writeByteToFile(byte[] fbyte, String fileName) throws IOException {
BufferedOutputStream bos = null; BufferedOutputStream bos = null;