Spring RestTemplate SocketException Connection reset on quick consecutive executions
Setup Simple server and client applications running locally. Server endpoint receives a POST request with a sleep time to simulate work. Client is a SpringBoot app using RestTemplate for HTTP calls. Simulating a 500ms delay at the server per request and issuing 700 multi-threaded requests. Problem On quick consecutive executions of the client program, I get java.net.SocketException: Connection reset. Stack trace: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:8081/server/site": Connection reset; nested exception is java.net.SocketExcepti
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.