Skip to content

Commit

Permalink
Use Connection Timeout Instead of Request Timeout for cURL (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku authored Feb 19, 2025
1 parent 421a719 commit ca19531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/libgamestream/src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void http_destroy(HTTP *http) {
void http_set_timeout(HTTP *http, int timeout) {
assert(http != NULL);
pthread_mutex_lock(&http->mutex);
curl_easy_setopt(http->curl, CURLOPT_TIMEOUT, timeout);
curl_easy_setopt(http->curl, CURLOPT_CONNECTTIMEOUT, timeout);
pthread_mutex_unlock(&http->mutex);
}

Expand Down
1 change: 0 additions & 1 deletion src/app/stream/session_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ int session_worker(session_t *session) {

commons_log_info("Session", "Launch app %d...", appId);
GS_CLIENT client = app_gs_client_new(app);
gs_set_timeout(client, 30);
const char *surround_params = NULL;
#if TARGET_WEBOS
if (session->config.stream.audioConfiguration == AUDIO_CONFIGURATION_51_SURROUND) {
Expand Down

0 comments on commit ca19531

Please sign in to comment.