Skip to content

Commit

Permalink
소셜로그인 타임아웃 설정타임 수정 #315
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jun 4, 2024
1 parent ed6b7f3 commit 031f8b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions plugin/social/Hybrid/thirdparty/OAuth/OAuth1Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class OAuth1Client{
public $redirect_uri = "";

public $decode_json = true;
public $curl_time_out = 30;
public $curl_connect_time_out = 30;
public $curl_time_out = 10;
public $curl_connect_time_out = 15;
public $curl_ssl_verifypeer = false;
public $curl_auth_header = true;
public $curl_useragent = "OAuth/1 Simple PHP Client v0.1; HybridAuth http://hybridauth.sourceforge.net/";
Expand Down Expand Up @@ -194,6 +194,7 @@ function request( $url, $method, $postfields = null, $auth_header = null, $conte
curl_setopt( $ci, CURLOPT_USERAGENT , $this->curl_useragent );
curl_setopt( $ci, CURLOPT_CONNECTTIMEOUT, $this->curl_connect_time_out );
curl_setopt( $ci, CURLOPT_TIMEOUT , $this->curl_time_out );
curl_setopt( $ci, CURLOPT_MAXREDIRS , 10);
curl_setopt( $ci, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ci, CURLOPT_HTTPHEADER , array('Expect:') );
curl_setopt( $ci, CURLOPT_SSL_VERIFYPEER, $this->curl_ssl_verifypeer );
Expand Down
5 changes: 3 additions & 2 deletions plugin/social/Hybrid/thirdparty/OAuth/OAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class OAuth2Client
//--

public $sign_token_name = "access_token";
public $curl_time_out = 30;
public $curl_connect_time_out = 30;
public $curl_time_out = 10;
public $curl_connect_time_out = 15;
public $curl_ssl_verifypeer = false;
public $curl_ssl_verifyhost = false;
public $curl_header = array();
Expand Down Expand Up @@ -221,6 +221,7 @@ private function request( $url, $params=false, $type="GET" )
curl_setopt($ch, CURLOPT_TIMEOUT , $this->curl_time_out );
curl_setopt($ch, CURLOPT_USERAGENT , $this->curl_useragent );
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT , $this->curl_connect_time_out );
curl_setopt($ch, CURLOPT_MAXREDIRS , 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , $this->curl_ssl_verifypeer );
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST , $this->curl_ssl_verifyhost );
curl_setopt($ch, CURLOPT_HTTPHEADER , $this->curl_header );
Expand Down

0 comments on commit 031f8b4

Please sign in to comment.