Bugfix: handle crash of client when the file to upload is too big. (A better fix should fix use of DataOutputStream to not store the all file in ram)

This commit is contained in:
Laurent Clouet
2017-03-18 17:05:54 +01:00
parent 2d0cdc41d9
commit e7354499ad

View File

@@ -705,6 +705,10 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
this.log.error("Server::HTTPSendFile, exception Exception " + e6);
return ServerCode.UNKNOWN;
}
catch (OutOfMemoryError e6) {
this.log.error("Server::HTTPSendFile, exception Exception " + e6);
return ServerCode.JOB_VALIDATION_ERROR_UPLOAD_FAILED;
}
int r;
try {