diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-25 19:35:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-25 19:35:33 +0000 |
commit | c400d2dfb0277e768ae873284c4d2245b6ff75b7 (patch) | |
tree | fc8bb679eb3cce03644473b0632e913f3cd7eaab /src | |
parent | 0a1d08331fda73bad092dc93b3cafea99eb310a0 (diff) | |
download | gnunet-c400d2dfb0277e768ae873284c4d2245b6ff75b7.tar.gz gnunet-c400d2dfb0277e768ae873284c4d2245b6ff75b7.zip |
store suggest handles, do not drop
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index aca86535f..c7459680f 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -2248,6 +2248,7 @@ try_connect_bl_check_cont (void *cls, | |||
2248 | GNUNET_TRANSPORT_PS_INIT_ATS, | 2248 | GNUNET_TRANSPORT_PS_INIT_ATS, |
2249 | GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT)); | 2249 | GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT)); |
2250 | GNUNET_ATS_reset_backoff (GST_ats, peer); | 2250 | GNUNET_ATS_reset_backoff (GST_ats, peer); |
2251 | GNUNET_assert (NULL == n->suggest_handle); | ||
2251 | n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, | 2252 | n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, |
2252 | peer); | 2253 | peer); |
2253 | } | 2254 | } |
@@ -2392,7 +2393,7 @@ GST_neighbours_handle_session_syn (const struct GNUNET_MessageHeader *message, | |||
2392 | set_state_and_timeout (n, GNUNET_TRANSPORT_PS_SYN_RECV_ATS, | 2393 | set_state_and_timeout (n, GNUNET_TRANSPORT_PS_SYN_RECV_ATS, |
2393 | GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT)); | 2394 | GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT)); |
2394 | if (NULL == n->suggest_handle) | 2395 | if (NULL == n->suggest_handle) |
2395 | GNUNET_ATS_suggest_address (GST_ats, peer); | 2396 | n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, peer); |
2396 | break; | 2397 | break; |
2397 | case GNUNET_TRANSPORT_PS_INIT_ATS: | 2398 | case GNUNET_TRANSPORT_PS_INIT_ATS: |
2398 | /* SYN message takes priority over us asking ATS for address: | 2399 | /* SYN message takes priority over us asking ATS for address: |
@@ -2446,7 +2447,7 @@ GST_neighbours_handle_session_syn (const struct GNUNET_MessageHeader *message, | |||
2446 | n->ack_state = ACK_SEND_SYN_ACK; | 2447 | n->ack_state = ACK_SEND_SYN_ACK; |
2447 | n->connect_ack_timestamp = ts; | 2448 | n->connect_ack_timestamp = ts; |
2448 | /* Request an address for the peer */ | 2449 | /* Request an address for the peer */ |
2449 | GNUNET_ATS_suggest_address (GST_ats, peer); | 2450 | n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, peer); |
2450 | GNUNET_ATS_reset_backoff (GST_ats, peer); | 2451 | GNUNET_ATS_reset_backoff (GST_ats, peer); |
2451 | set_state (n, GNUNET_TRANSPORT_PS_SYN_RECV_ATS); | 2452 | set_state (n, GNUNET_TRANSPORT_PS_SYN_RECV_ATS); |
2452 | break; | 2453 | break; |