Getting Connection reset by peer: socket write error while uploading large size (100 MBs +)assets in DAM Update Asset

abhi_entre

19-02-2020

Hi Experts,

 

I am getting Connection reset by peer: socket write error only for large size assets which are 100+ MBs in size during dam update asset workflow which is a custom one for our need as we are sending assets to CDN at last step of this workflow.

 

This workflow works fine for all the assets except a few which are 100 mb+ in size.

 

Can somebody help me in understanding what I am missing which is leading me to this error? 

 

Below is part of code which is written in WorkflowProcess class 

 

// Some other business logic

assetFile= new File(assetName);
fileOutputStream = new FileOutputStream(tempFile);
IOUtils.copy(assetInputStream, fileOutputStream);

Map<String, Object> uploadResult = cdnInstance.upload(assetFile,
params);
logger.info("uploaded data is {}", uploadResult);
}
} catch (IOException ioException) {
logger.error(ioException.getMessage());
} catch (RepositoryException repoExcep) {
logger.error(repoExcep.getMessage());
} finally {
try {
fileOutputStream.flush();
fileOutputStream.close();
assetInputStream.close();
tempFile.delete();
} catch (IOException e) {
logger.error("error while closing the stream" + e.getMessage());
}

 

Cheers!

Accepted Solutions (0)

Answers (0)