This article is a mirror article of machine translation, please click here to jump to the original article.

View: 25832|Reply: 0

[Source] OpenFeign connect timed out executioning exception

[Copy link]
Posted on 2021-10-18 16:22:52 | | | |
When the microservice is called remotely, an error is reported: connect timed out executing, and the function is good and bad. As shown below:



OpenFeign in terms of timeouts, it allows us to configure read and connect timeouts. The connection timeout is the time it takes for a TCP handshake, while the read timeout is the time it takes to read data from a socket.

By default, the connection and read timeouts are 10 and 60 seconds, respectively. It can be viewed through the source code, as shown below:



YML configuration:


The reason for the anomaly is because,A colleague registered the local computer address on the NACOS of the UATOpenFeign will obtain the IP address and port of the microservice on nacos through the service name, and the connection will time out after 10 seconds because the server cannot call the notified computer.

Documentation:The hyperlink login is visible.





Previous:DELL PowerEdge T340 is equipped with ESXI 7.0 virtualization
Next:【Practical Action】Web high availability tutorial for Keepalived and Nginx
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com