Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Level 2
Level 2

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);"uploaded data is {}", uploadResult);
} catch (IOException ioException) {
} catch (RepositoryException repoExcep) {
} finally {
try {
} catch (IOException e) {
logger.error("error while closing the stream" + e.getMessage());



0 Replies