aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-23 08:27:33 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-23 08:27:33 +0000
commit6b7629b51e832e7969ab1d6f138815367c1c4cfc (patch)
tree41fd78601a7a6d4da3a1654293d71fc9d27db1b3 /src
parent3e152ec2a0809d8e4f633b61f012ff7179e6ac7f (diff)
downloadgnunet-6b7629b51e832e7969ab1d6f138815367c1c4cfc.tar.gz
gnunet-6b7629b51e832e7969ab1d6f138815367c1c4cfc.zip
- additional back off resets
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 8af38f010..e0e19ab3d 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -1698,6 +1698,8 @@ GST_neighbours_try_connect (const struct GNUNET_PeerIdentity *target)
1698 n = setup_neighbour (target); 1698 n = setup_neighbour (target);
1699 n->state = S_INIT_ATS; 1699 n->state = S_INIT_ATS;
1700 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT); 1700 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
1701
1702 GNUNET_ATS_reset_backoff (GST_ats, target);
1701 GNUNET_ATS_suggest_address (GST_ats, target); 1703 GNUNET_ATS_suggest_address (GST_ats, target);
1702} 1704}
1703 1705
@@ -1807,6 +1809,7 @@ handle_test_blacklist_cont (void *cls,
1807 n->state = S_INIT_ATS; 1809 n->state = S_INIT_ATS;
1808 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT); 1810 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
1809 // FIXME: do we need to ask ATS again for suggestions? 1811 // FIXME: do we need to ask ATS again for suggestions?
1812 GNUNET_ATS_reset_backoff (GST_ats, peer);
1810 GNUNET_ATS_suggest_address (GST_ats, &n->id); 1813 GNUNET_ATS_suggest_address (GST_ats, &n->id);
1811 } 1814 }
1812 break; 1815 break;
@@ -2007,6 +2010,7 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
2007 case S_NOT_CONNECTED: 2010 case S_NOT_CONNECTED:
2008 n->state = S_CONNECT_RECV_ATS; 2011 n->state = S_CONNECT_RECV_ATS;
2009 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT); 2012 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
2013 GNUNET_ATS_reset_backoff (GST_ats, peer);
2010 GNUNET_ATS_suggest_address (GST_ats, peer); 2014 GNUNET_ATS_suggest_address (GST_ats, peer);
2011 check_blacklist (peer, ts, address, session, ats, ats_count); 2015 check_blacklist (peer, ts, address, session, ats, ats_count);
2012 break; 2016 break;
@@ -2055,6 +2059,7 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
2055 free_neighbour (n); 2059 free_neighbour (n);
2056 n = setup_neighbour (peer); 2060 n = setup_neighbour (peer);
2057 n->state = S_CONNECT_RECV_ATS; 2061 n->state = S_CONNECT_RECV_ATS;
2062 GNUNET_ATS_reset_backoff (GST_ats, peer);
2058 GNUNET_ATS_suggest_address (GST_ats, peer); 2063 GNUNET_ATS_suggest_address (GST_ats, peer);
2059 check_blacklist (peer, ts, address, session, ats, ats_count); 2064 check_blacklist (peer, ts, address, session, ats, ats_count);
2060 break; 2065 break;