public static void configureConnectionSettings ( final Request request , final InstagramConfig config ) { request . setConnectTimeout ( config . getConnectionTimeoutMills ( ) , TimeUnit . MILLISECONDS ) ; request . setReadTimeout ( config . getReadTimeoutMills ( ) , TimeUnit . MILLISECONDS ) ; // #51 Connection Keep Alive request . setConnectionKeepAlive ( config . isConnectionKeepAlive ( ) ) ; }
Configure the request with the connection settings of config