tcp multiple #32

Merged
louis_royer merged 11 commits from tcp into servs-multiples 2020-03-18 16:26:21 +01:00
Showing only changes of commit ecb007584a - Show all commits

View File

@ -97,7 +97,11 @@ public class ClientDownloadPartTCP implements Runnable {
}
}
System.err.println("Closing socket");
socket.close();
try{
socket.close();
} catch(IOException e){
System.err.println("can't close socket");
}
}
/** Get list of offsets that have not be downloaded if failed, else
@ -216,6 +220,9 @@ public class ClientDownloadPartTCP implements Runnable {
e.printStackTrace();
System.err.println("Error: reqPart ioexception");
return null;
} catch (SocketClosed e){
System.err.println("Error: reqPart SocketClosed");
return null;
}
}