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:
@@ -705,6 +705,10 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
this.log.error("Server::HTTPSendFile, exception Exception " + e6);
|
this.log.error("Server::HTTPSendFile, exception Exception " + e6);
|
||||||
return ServerCode.UNKNOWN;
|
return ServerCode.UNKNOWN;
|
||||||
}
|
}
|
||||||
|
catch (OutOfMemoryError e6) {
|
||||||
|
this.log.error("Server::HTTPSendFile, exception Exception " + e6);
|
||||||
|
return ServerCode.JOB_VALIDATION_ERROR_UPLOAD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
int r;
|
int r;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user