How to avoid KErrDisconnected!
Hello guys,
I received this error code in the
MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
function call.
Searching SDK, results: a function could not be executed because the required session was disconnected.
How can i avoid this error and what is the most expected part generate this error?
Thanks in advance.
Re: How to avoid KErrDisconnected!
You should re-check what you are doing, drop of connection is mostly originating from outside, not your code and not the device itself. The server and/or the communication channel have some problems.
Re: How to avoid KErrDisconnected!
Thank you wizard,
I will check this and let you know.
Re: How to avoid KErrDisconnected!
Hi,
As wizard_hu has mentioned that error like KErrDisconnected are coming from the socket so there is not much you can do about it if the connection is already dropped at the max you can again try to connect on the same port. But while working on Sockets I came upon a interesting feature that a certain amount of inactivity period on the port also results in this error code. May be it is just one-off cases but at least it happened in my case.