In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1) due to no interaction for a long time, the channel is reclaimed by the router
The client did not detect the disconnection of the network connection, and the server-side exception was caught. The log output is as follows: TSocket::read () recv () errno = 10060
Error lookup 10060
The connection attempt failed because the connecting party did not reply correctly or the connected host did not respond after a period of time.
Knowledge expansion
TCP does not provide timely notification of lost connections, and heartbeats are required for applications that ensure a normal TCP connection in real time. Thrift is based on TCP connection, but it is not a real long connection. It can only be used in the stable and high-speed network environment within the system. In order to achieve a real long connection, you must manually add a heartbeat packet to the application. The current method is that the client sends a heartbeat packet regularly, and then the server receives it and returns the heartbeat packet directly. The client does not receive the heartbeat packet within 10 seconds, indicating that the connection is disconnected and reconnected.
2) Network exception
There are a large number of unreleased network connections on the server-side system. Check with netstat-na, and the connection status is CLOSE_WAIT
This problem is mainly due to the fact that the end process of the TCP has not been completed, resulting in the connection not being released. The client is now actively disconnected. The process is as follows
Client message Server
Close ()
-FIN->
FIN_WAIT1 CLOSE_WAIT
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.