What is a connectionErrorReturn: 1040?
I am using the photon cloud and an IOS Swift client. What is a connectionErrorReturn: 1040? I read in the forums that a "1040 is a client side timeout disconnect." But in EGDisconnectCause.h I read the following:
#define EGDisconnectCause_TIMEOUT_DISCONNECT ( 5) ///
<OnStatusChanged: This client detected that the server's responses are not received in due time. Maybe you send / receive too much?
Are these the same thing?
Thanks.
#define EGDisconnectCause_TIMEOUT_DISCONNECT ( 5) ///
<OnStatusChanged: This client detected that the server's responses are not received in due time. Maybe you send / receive too much?
Are these the same thing?
Thanks.
0
Best Answer
-
Hi @GreenRollingHills
Yes, they are the same.
The error message refers to EGStatusCode_TIMEOUT_DISCONNECT in .\Photon-objc\inc\Enums\EG_StatusCode.h
When the client receives this error, it will set the disconnect cause to EGDisconnectCause_TIMEOUT_DISCONNECT.
The constants that start with EG_DisconnectCause are the possible values for the DisconnectedCause property of EGLoadBalancingClient and a pure client side thing on LoadBalancing level, while callbacks like connectionErrorReturn() return the original error codes that come from either lower levels of the client implementation (directly from the Photon layer, that lays below the LoadBalancing layer) or from the server.5
Answers
-
Hi @GreenRollingHills
Yes, they are the same.
The error message refers to EGStatusCode_TIMEOUT_DISCONNECT in .\Photon-objc\inc\Enums\EG_StatusCode.h
When the client receives this error, it will set the disconnect cause to EGDisconnectCause_TIMEOUT_DISCONNECT.
The constants that start with EG_DisconnectCause are the possible values for the DisconnectedCause property of EGLoadBalancingClient and a pure client side thing on LoadBalancing level, while callbacks like connectionErrorReturn() return the original error codes that come from either lower levels of the client implementation (directly from the Photon layer, that lays below the LoadBalancing layer) or from the server.5