mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 15:25:35 +00:00
fix: it took so long time to connect to the Sunshine host in the FreeBSD
Disable reuse feature for FreeBSD to prevent excessive time from being spent connecting to the Sunshine host
This commit is contained in:
parent
3840b1409e
commit
b3fb22d427
@ -73,6 +73,9 @@ int http_init(const char* keyDirectory, int logLevel) {
|
||||
int http_request(char* url, PHTTP_DATA data) {
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, data);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||
#ifdef __FreeBSD__
|
||||
curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1);
|
||||
#endif
|
||||
|
||||
if (debug)
|
||||
printf("Request %s\n", url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user