Async Socket ..客户端在处理服务器端请求超过1小时后没有响应 [英] Async Socket.. Client not responding after processing server side request for more than 1 hr

查看:147
本文介绍了Async Socket ..客户端在处理服务器端请求超过1小时后没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当客户端的scoket没有将响应发送回服务器套接字时,任何人都可以帮助我理解。这是场景



1.Server发送请求



2.Client收到请求



3.收到请求后,客户启动一些流程并运行超过1小时



4.完成后进程执行时,客户端必须将响应发送回服务器



5.so,服务器可以立即将另一个请求发送到客户端进行处理..



在客户端,我们使用开始Accpet,开始接收和发送方法...和服务器端我们使用发送和接收异步调用方法



如果流程在一小时之前完成,那么客户端正在发送,服务器r正在向客户端发送下一个请求以启动流程没有问题..只有问题是如果流程运行超过1小时然后只有客户端无法发回/服务器没有收到客户端响应..不确定..



请帮助解决此问题。

Can any one please help me understand , when my scoket at client end is not sending the response back to server socket . Here is the scenario

1.Server send request

2.Client receives the request

3.After receiving request , Client starts some process and runs for more than 1 hr

4.After completion of process execution , client has to send the response back to server

5.so , server can send immediately another request in Queue to client for process..

In Client side, we are usig Begin Accpet, Begin Receive, and Send methods... and Server side we are using Send and receive methods of Async call

if the process completes before one hour then client is sending and server r is sending the next request to client to start process no issues.., only issue is if the process runs for more than 1 hr then only client is not able to send back / server is not receiving the client response .. not sure..

Please help to resolve this issue .

推荐答案

这篇关于Async Socket ..客户端在处理服务器端请求超过1小时后没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆