Do you have rational Values for the timeout? [ setTimeout(int timeout) ]
With very small values ~ 1 msec I get an Exception (obvioulsy).
I tried 1000 but sometimes get the read timeout exception and sometimes not.
What do you suggest to use for the timeout value? 10 sec? 1 minute? The documentaion does not mention it.
Another question: Does the timeout happen when downloading a very big file, too? E.g. transmission of an 1GB file would take more then 10 seconds.
Thanks in advance.