Dear corona community,
I read the docs on network.request and the timeout parameter. It says:
Timeout in seconds. Default is 30 seconds.
I set the timeout to 1 second and successfully uploaded a file that took more than 1 second to upload, so my guess is that this timeout does not mean the time a connection is kept alive. What exactly does this timeout stand for instead?
Is it the time my app tries to connect to a server?
Also, which event would be fired as a result of a timeout? Would it be the event.isError?
3rd related question: Can I set a timeout after which the connection is cancelled? (lets say my network connection is pretty bad and I’d like to upload a GB of data. I’d like my app to sort of cancel this request after a while and give some sort of a popup).
I’d appreciate any information on this topic
Thanks