简体   繁体   English

与服务器的连接已终止-C ++

[英]connection with server was terminated - c++

Am working on VC++ application. 我正在VC ++应用程序上工作。 It runs as a background application and connects to the server for every hour. 它作为后台应用程序运行,并且每小时连接到服务器。 It normally works really good but sometimes am receiving an error "The connection with server was terminated abnormally". 通常正常工作,但有时会收到错误“与服务器的连接异常终止”。

Does anyone have any idea to deal with this ? 有谁有想法解决这个问题?

可能是网络拥塞或服务器负载的原因,您应该更改代码以在连接成功之前立即重试可配置的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM