Let's talk about the deployment relationships of the corporate infrastructure:
Problem Description:
When the Web cluster calls app cluster, the app complains Java.net.SocketTimeoutException:Read timed out,web this side reported 500.
The error is accidental, in production, a instance on average only a few times a day.
The case of grasping the bag is as follows:
From the log, the Web request app sends the body content "{}".
Web Side Grab Package:
App End Grab Bag:
Conclusion: From the grasp of the case, the Web side does not send the "{}" the body out, and content-length is 2, so that the app side has been waiting for the web side to send the body, resulting in a timeout.
Legacy issues:
1. Check the code sent by the web side to see if there is a problem with multithreading (because the phenomenon is sometimes not), resulting in the body lost.
2. There is a possibility that the web side did not receive the app reply Ark package, so the web side did not send the body, only the head sent past.
OK, here we go, keep looking at the problem, and we'll have new progress tomorrow.