title: How to fix SSL handshake timed out in Retrofit
body: <p>In my application I want get data from server and show this into <code>RecyclerView</code>.<br>
  For get data from server I use <strong>Retrofit2</strong> and I write below codes.<br>
  But when running application after some time show me <code>E/priceResLog: Err : SSL handshake timed out</code> in <code>onFailure</code> from <strong>Retrofit2</strong>!<br></p>
  
  <p><strong>My codes :</strong> </p>
  
  <pre><code>public class ApiUtilsPrice {
  
      private static final String BASE_URL = "https://core.arzws.com/";
      private static Retrofit retrofit = null;
  
      public static Retrofit getClient() {
  
          OkHttpClient okHttpClient = new OkHttpClient.Builder()
                  .readTimeout(60, TimeUnit.SECONDS)
                  .writeTimeout(60, TimeUnit.SECONDS)
                  .connectTimeout(60, TimeUnit.SECONDS)
                  .build();
  
          if (retrofit == null) {
              retrofit = new Retrofit.Builder()
                      .client(okHttpClient)
                      .baseUrl(BASE_URL)
                      .addConverterFactory(GsonConverterFactory.create())
                      .build();
          }
          return retrofit;
      }
  }
  </code></pre>
  
  <p><strong>Activity codes :</strong></p>
  
  <pre><code>private void getCoinData() {
      loaderLayout(true);
      Call&lt;GoldListResponse&gt; call = apiInterface.getGoldPrice();
      call.enqueue(new Callback&lt;GoldListResponse&gt;() {
          @Override
          public void onResponse(Call&lt;GoldListResponse&gt; call, Response&lt;GoldListResponse&gt; response) {
              if (response.isSuccessful()) {
                  if (response.body() != null) {
                      loaderLayout(false);
                      model.clear();
                      model.addAll(response.body().getGoldBoard());
                      coinAdapter.notifyDataSetChanged();
                      isSendApi = true;
                  }
              }
          }
  
          @Override
          public void onFailure(Call&lt;GoldListResponse&gt; call, Throwable t) {
              Log.e("priceResLog", "Err : " + t.getMessage());
          }
      });
  }
  </code></pre>
  
  <p>How can I fix it? please help me thanks.</p>