why disconnect on error: RcfError_ClientReadTimeout?

RCFProto support and general discussion.
Post Reply
mou
Posts: 19
Joined: Fri Sep 26, 2014 7:53 am

why disconnect on error: RcfError_ClientReadTimeout?

Post by mou »

When a server-side computaion takes long time that exceeds the given timeout of the client, RcfError_ClientReadTimeout error will be raised.
I think in that scenario, we can resuse a the existing TCP connection.
But, why does RCF disconnect it?

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: why disconnect on error: RcfError_ClientReadTimeout?

Post by jarl »

In a timeout situation it's no longer known what state the connection is in (e.g. was the request dropped on the network? Or is the request still being processed on the server? Or was the response dropped on the network?). So to get things back to a known state, we close the connection and open a new one.
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply