Getting Connection reset by peer: socket write error while uploading large size (100 MBs +)assets in DAM Update Asset | Community
Skip to main content
February 19, 2020
Question

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

  • February 19, 2020
  • 0 replies
  • 1645 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.