goodev / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
1 stars 0 forks source link

HttpTransportSE very slow when not connected to the Internet #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 
I have used the library for months and it works very well. But I am facing now 
an issue, which occurs when I have both device and server in the same local 
network (e.g. the device has the IP 192.168.1.3 and the server 192.168.1.2) and 
this network is not connected to the Internet. Nevertheless it works well when 
the network is connected to the Internet. In this case the 
HttpTransportSE.call() method returns immediately, but when not connected to 
the Internet it takes up to 20 seconds to return (what is a lot of time for the 
task that uses it). 
I have tried with the 3.0.0-RC.4 but it did not work.  

Could you check this out, please?

Thank you!

Original issue reported on code.google.com by j...@boleteriafacil.com on 8 Jun 2013 at 11:36

GoogleCodeExporter commented 9 years ago
The time out is defined in org.ksoap2.transport.ServiceConnection in the global 
property public static final int DEFAULT_TIMEOUT = 20000; // 20 seconds

You can specify an optimal timeout for you scenario. By Calling the the 
constructor 

public HttpTransportSE(Proxy proxy, String url, int timeout, int contentLength);

Original comment by jose.cas...@gmail.com on 5 Sep 2013 at 5:41

GoogleCodeExporter commented 9 years ago
This is a network stack and not a ksoap issue

Original comment by mosa...@gmail.com on 15 Oct 2013 at 3:43