I am using spark on a radio network that a round trip is about 20 second.
We can use spark clients using large “response timeouts” to be able to work on radio network.
Chat facilities are working without any problem bu we live some problem in file transfer.
The following exception occurs after file transfer is accepted and some time is passed;
When I looked at the file IncomingfileTransfer.java line 199 it seems that it is
"throw new SmackException(“Error in execution”, e);" exception.
Firstly I thought that it is a timeout problem because of long round-trip times but there is also a timeout exception available in line 202;
" throw new SmackException(“Request timed out”, e);" and it is not trown.
note that when I kill the sender spark instance during negotiation process the same exception happens.
The source of exception happens in method line 193 ;
"inputStream = streamNegotiatorTask.get(15, TimeUnit.SECONDS);"
It means that after 15 second the neagotiation must finished but this is not the case in our network(may last 10 min.).
Also I decreased the round-trip time in the radio network the problem disappears.
As a result alhough from the exception it does not seem a timeout problem, I think it is a timeout problem because of line 193.
I think its timeout value must be the same as file transsfer timeout defined in File Transfer Preference->Transfer Timeout.