It happens quite frequently that I do not receive an answer from the Swifter server until the timeout of the client. And if there is no timeout on the client, the request runs indefinitely. The connection is open but the server never returns an answer or closes it.
This happens more frequently if I start the Swifter server right after a change of connection/passover to plane mode. The combination airplane mode + wifi on but not connected to a network is the one where the problem appears most frequently. Without understanding the connection...
Is it related to the mobile phone? What I have encountered is that some mobile phones can respond immediately. Some phones just don't respond. Don't know what the problem is? Run the Demo directly.
Hello,
It happens quite frequently that I do not receive an answer from the Swifter server until the timeout of the client. And if there is no timeout on the client, the request runs indefinitely. The connection is open but the server never returns an answer or closes it.
This happens more frequently if I start the Swifter server right after a change of connection/passover to plane mode. The combination airplane mode + wifi on but not connected to a network is the one where the problem appears most frequently. Without understanding the connection...
Here are snippets of code I use :
When the problem appears, the
start
function does not trigger exceptions and thestate
is still equal to "running".