[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5025 - GNUnet/src/transports/upnp
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5025 - GNUnet/src/transports/upnp |
Date: |
Tue, 12 Jun 2007 23:16:48 -0600 (MDT) |
Author: grothoff
Date: 2007-06-12 23:16:48 -0600 (Tue, 12 Jun 2007)
New Revision: 5025
Modified:
GNUnet/src/transports/upnp/upnp.c
Log:
print URIs
Modified: GNUnet/src/transports/upnp/upnp.c
===================================================================
--- GNUnet/src/transports/upnp/upnp.c 2007-06-13 04:44:48 UTC (rev 5024)
+++ GNUnet/src/transports/upnp/upnp.c 2007-06-13 05:16:48 UTC (rev 5025)
@@ -295,7 +295,7 @@
}
/* get the controlURL of the service */
- if((controlURLNode = xmlnode_get_child(serviceTypeNode,
+ if ((controlURLNode = xmlnode_get_child(serviceTypeNode,
"controlURL")) == NULL) {
FREE(baseURL);
xmlnode_free(xmlRootNode);
@@ -303,7 +303,9 @@
}
tmp = xmlnode_get_data(controlURLNode);
- if(baseURL && !gaim_str_has_prefix(tmp, "http://") &&
+ fprintf(stderr,
+ "Got control %s\n", tmp);
+ if (baseURL && !gaim_str_has_prefix(tmp, "http://") &&
!gaim_str_has_prefix(tmp, "HTTP://")) {
if (tmp[0] == '/') {
size_t len;
@@ -419,7 +421,16 @@
CURL_EASY_SETOPT(curl,
CURLOPT_POSTFIELDSIZE,
strlen(soapMessage));
- if (ret == CURLE_OK)
+ CURL_EASY_SETOPT(curl,
+ CURLOPT_CONNECTTIMEOUT,
+ 2L);
+ /* NOTE: use of CONNECTTIMEOUT without also
+ setting NOSIGNAL results in really weird
+ crashes on my system! */
+ CURL_EASY_SETOPT(curl,
+ CURLOPT_NOSIGNAL,
+ 1);
+ if (ret == CURLE_OK)
ret = curl_easy_perform(curl);
#if 0
if (ret != CURLE_OK)
@@ -544,6 +555,9 @@
curl = curl_easy_init();
setup_curl(proxy, curl);
ret = CURLE_OK;
+ fprintf(stderr,
+ "Requesting UPnP info from %s\n",
+ dd->full_url);
CURL_EASY_SETOPT(curl,
CURLOPT_URL,
dd->full_url);
@@ -553,6 +567,15 @@
CURL_EASY_SETOPT(curl,
CURLOPT_WRITEDATA,
dd);
+ CURL_EASY_SETOPT(curl,
+ CURLOPT_CONNECTTIMEOUT,
+ 2L);
+ /* NOTE: use of CONNECTTIMEOUT without also
+ setting NOSIGNAL results in really weird
+ crashes on my system! */
+ CURL_EASY_SETOPT(curl,
+ CURLOPT_NOSIGNAL,
+ 1);
ret = curl_easy_perform(curl);
if (ret != CURLE_OK)
GE_LOG(NULL,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5025 - GNUnet/src/transports/upnp,
gnunet <=