[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12002 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12002 - gnunet/src/transport |
Date: |
Mon, 28 Jun 2010 09:57:17 +0200 |
Author: wachs
Date: 2010-06-28 09:57:17 +0200 (Mon, 28 Jun 2010)
New Revision: 12002
Modified:
gnunet/src/transport/plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-06-28 07:39:25 UTC
(rev 12001)
+++ gnunet/src/transport/plugin_transport_http.c 2010-06-28 07:57:17 UTC
(rev 12002)
@@ -930,6 +930,7 @@
int bytes_sent = 0;
CURLMcode mret;
struct HTTP_Message * msg;
+ struct GNUNET_TIME_Relative timeout =
GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT;
/* already connected, no need to initiate connection */
if ((con->connected == GNUNET_YES) && (con->curl_handle != NULL) &&
(con->send_paused == GNUNET_NO))
@@ -965,7 +966,7 @@
curl_easy_setopt(con->curl_handle, CURLOPT_READDATA, con);
curl_easy_setopt(con->curl_handle, CURLOPT_WRITEFUNCTION,
send_write_callback);
curl_easy_setopt(con->curl_handle, CURLOPT_READDATA, con);
- curl_easy_setopt(con->curl_handle, CURLOPT_TIMEOUT,
GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
+ curl_easy_setopt(con->curl_handle, CURLOPT_TIMEOUT, (long) timeout.value);
curl_easy_setopt(con->curl_handle, CURLOPT_PRIVATE, con);
curl_easy_setopt(con->curl_handle, CURLOPT_CONNECTTIMEOUT,
HTTP_CONNECT_TIMEOUT_DBG);
curl_easy_setopt(con->curl_handle, CURLOPT_BUFFERSIZE,
GNUNET_SERVER_MAX_MESSAGE_SIZE);
@@ -1018,7 +1019,7 @@
break;
/* get session for affected curl handle */
GNUNET_assert ( msg->easy_handle != NULL );
- curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &con);
+ curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, (char *)
&con);
GNUNET_assert ( con != NULL );
cs = con->session;
GNUNET_assert ( cs != NULL );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12002 - gnunet/src/transport,
gnunet <=