From 8a759ba24a75b465e4909e2e2507d268e4ae5989 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Sun, 29 Sep 2024 23:28:17 +0900 Subject: [PATCH] forbid connection reuse for libgamestream fixes #452 --- core/libgamestream/src/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/libgamestream/src/http.c b/core/libgamestream/src/http.c index cc22ffe75..1e45fce16 100644 --- a/core/libgamestream/src/http.c +++ b/core/libgamestream/src/http.c @@ -76,6 +76,8 @@ HTTP *http_create(const char *keydir) { curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn); curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L); curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L); + // Fix for https://github.com/mariotaku/moonlight-tv/issues/452 + curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1L); struct HTTP_T *http = malloc(sizeof(struct HTTP_T)); assert(http != NULL);