While posting a rest template call from one micro service to another getting Broken pipe error. Request body contains a file around 5MB in size. I tried every means but couldn't be able to rectify why this error I'm getting.
Tried with below configuration in application.properties and code level changes in microservices
Locally with same config file getting processed in approx. 5 mins
server.tomcat.connection-timeout = 36000s #10 minsHttpHeaders header = new HttpHeaders();header.setContentType(MediaType.APPLICATION.JSON);HttpEntity<?> httpEntity = new HttpEntity<>(fileDetailsMap, header); //filedetailsMap contained fileSimpleClientHttpRequestFactory rf = new SimpleClinetHttpRequestFactory();rf.setConnectionTimeout("36000");rf.setReadTimeout(36000);restTemplate.exchange(restUrl, HttpMethod.POST, httpEnitity, String.class);
