aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-09 14:28:45 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-09 14:28:45 +0000
commit72a2c1b9542d68eab32f483a1c53eeec19bc12b3 (patch)
tree36fe4082af27fba371e51bb838d8a0435e032432 /src/transport/gnunet-service-transport_validation.c
parent6806f421c1164921cfa265ddc7009c08986bc915 (diff)
downloadgnunet-72a2c1b9542d68eab32f483a1c53eeec19bc12b3.tar.gz
gnunet-72a2c1b9542d68eab32f483a1c53eeec19bc12b3.zip
-do only send HELLO to clients once on startup, do only send fully initialized HELLO to clients if we can help it, even the first one; do not perform blacklist check twice for try_connect
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index abf15debf..a2fb3c853 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -526,7 +526,12 @@ transmit_ping_if_allowed (void *cls,
526 cleanup_validation_entry (NULL, pid, ve); 526 cleanup_validation_entry (NULL, pid, ve);
527 return; 527 return;
528 } 528 }
529 529 hello = GST_hello_get ();
530 if (NULL == hello)
531 {
532 GNUNET_break (0);
533 return;
534 }
530 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 535 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
531 "Transmitting plain PING to `%s' `%s' `%s'\n", 536 "Transmitting plain PING to `%s' `%s' `%s'\n",
532 GNUNET_i2s (pid), 537 GNUNET_i2s (pid),
@@ -534,7 +539,6 @@ transmit_ping_if_allowed (void *cls,
534 ve->address->transport_name); 539 ve->address->transport_name);
535 540
536 slen = strlen (ve->address->transport_name) + 1; 541 slen = strlen (ve->address->transport_name) + 1;
537 hello = GST_hello_get ();
538 hsize = ntohs (hello->size); 542 hsize = ntohs (hello->size);
539 tsize = 543 tsize =
540 sizeof (struct TransportPingMessage) + ve->address->address_length + 544 sizeof (struct TransportPingMessage) + ve->address->address_length +
@@ -900,7 +904,7 @@ GST_validation_start (unsigned int max_fds)
900 validations_running, 904 validations_running,
901 GNUNET_NO); 905 GNUNET_NO);
902 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 906 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
903 "Validation uses a fast start threshold of %u connections and a delay between of %s\n ", 907 "Validation uses a fast start threshold of %u connections and a delay of %s\n",
904 validations_fast_start_threshold, 908 validations_fast_start_threshold,
905 GNUNET_STRINGS_relative_time_to_string (validation_delay, 909 GNUNET_STRINGS_relative_time_to_string (validation_delay,
906 GNUNET_YES)); 910 GNUNET_YES));