use tcp fast open for /keys request

This commit is contained in:
Florian Dold 2018-09-21 22:02:05 +02:00
parent 9e60296f92
commit 0a4ce8475a
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1176,6 +1176,7 @@ request_keys (void *cls)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting keys with URL `%s'.\n",
kr->url);
eh = TALER_EXCHANGE
eh = curl_easy_init ();
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
@ -1201,6 +1202,10 @@ request_keys (void *cls)
curl_easy_setopt (eh,
CURLOPT_ENCODING,
"deflate"));
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_TCP_FASTOPEN,
1L));
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
GNUNET_NO,