@@ -21,7 +21,7 @@ import { BaseApiClient } from '../common/base-api.client';
2121 * const client = new GitLabClient({
2222 * token: 'glpat_your_token_here',
2323 * baseUrl: 'https://gitlab.example.com', // Your GitLab instance URL
24- * timeout: 30000 // Optional, defaults to 30 seconds
24+ * timeout: 60000 // Optional, defaults to 60 seconds
2525 * });
2626 *
2727 * // Check connectivity
@@ -98,7 +98,7 @@ export class GitLabClient extends BaseApiClient {
9898 * @param config Configuration options for the GitLab client
9999 * @param config.token GitLab personal access token (required)
100100 * @param config.baseUrl GitLab instance base URL (required)
101- * @param config.timeout Request timeout in milliseconds (optional, defaults to 30000 )
101+ * @param config.timeout Request timeout in milliseconds (optional, defaults to 60000 )
102102 *
103103 * @example
104104 * ```typescript
@@ -110,10 +110,12 @@ export class GitLabClient extends BaseApiClient {
110110 * ```
111111 */
112112 constructor ( config : GitLabConfig ) {
113- super ( config . baseUrl || 'https://gitlab.com' , config . timeout || 30000 ) ;
113+ super ( config . baseUrl || 'https://gitlab.com' , config . timeout || 60000 ) ;
114114 this . client = new Gitlab ( {
115115 host : this . baseUrl ,
116116 token : config . token ,
117+ queryTimeout : this . timeout ,
118+ rejectUnauthorized : config . sslVerify ,
117119 } ) ;
118120
119121 this . projects = new GitLabProjectService ( this . client ) ;
0 commit comments