Commit 1739fc30 authored by Xavier's avatar Xavier

SSL timeout bugfix

parent 917dba8d
......@@ -26,6 +26,9 @@ import ch.boye.httpclientandroidlib.conn.ssl.SSLConnectionSocketFactory;
import ch.boye.httpclientandroidlib.impl.client.CloseableHttpClient;
import ch.boye.httpclientandroidlib.impl.client.HttpClients;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.orekit.propagation.SpacecraftState;
import cs.si.stavor.R;
......@@ -130,10 +133,15 @@ public class ThreadRemote extends Thread{
.build();
RequestConfig requestConfig = RequestConfig.custom()
.setConnectionRequestTimeout(Parameters.Simulator.Remote.remote_connection_timeout_ms)
.setSocketTimeout(Parameters.Simulator.Remote.remote_connection_timeout_ms)
.setConnectTimeout(Parameters.Simulator.Remote.remote_connection_timeout_ms)
.build();
final HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setSoTimeout(httpParams, Parameters.Simulator.Remote.remote_connection_timeout_ms);
HttpConnectionParams.setConnectionTimeout(httpParams, Parameters.Simulator.Remote.remote_connection_timeout_ms);
// GET request to execute
/*get = new HttpGet(
"https://192.168.43.10:8443/OrekitWebServer/StavorServlet");*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment