diff options
Diffstat (limited to 'src/core/gnunet-service-core_sessions.c')
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 5d34b7c26..973ef9c2f 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c | |||
@@ -147,12 +147,6 @@ struct Session | |||
147 | struct GNUNET_TIME_Relative typemap_delay; | 147 | struct GNUNET_TIME_Relative typemap_delay; |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * Is the neighbour queue empty and thus ready for us | ||
151 | * to transmit an encrypted message? | ||
152 | */ | ||
153 | int ready_to_transmit; | ||
154 | |||
155 | /** | ||
156 | * Is this the first time we're sending the typemap? If so, | 150 | * Is this the first time we're sending the typemap? If so, |
157 | * we want to send it a bit faster the second time. 0 if | 151 | * we want to send it a bit faster the second time. 0 if |
158 | * we are sending for the first time, 1 if not. | 152 | * we are sending for the first time, 1 if not. |
@@ -641,13 +635,7 @@ try_transmission (struct Session *session) | |||
641 | enum GNUNET_CORE_Priority maxpc; | 635 | enum GNUNET_CORE_Priority maxpc; |
642 | struct GSC_ClientActiveRequest *car; | 636 | struct GSC_ClientActiveRequest *car; |
643 | int excess; | 637 | int excess; |
644 | 638 | ||
645 | if (GNUNET_YES != session->ready_to_transmit) | ||
646 | { | ||
647 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
648 | "Not yet ready to transmit, not evaluating queue\n"); | ||
649 | return; | ||
650 | } | ||
651 | msize = 0; | 639 | msize = 0; |
652 | min_deadline = GNUNET_TIME_UNIT_FOREVER_ABS; | 640 | min_deadline = GNUNET_TIME_UNIT_FOREVER_ABS; |
653 | /* if the peer has excess bandwidth, background traffic is allowed, | 641 | /* if the peer has excess bandwidth, background traffic is allowed, |
@@ -888,10 +876,12 @@ GSC_SESSIONS_solicit (const struct GNUNET_PeerIdentity *pid) | |||
888 | { | 876 | { |
889 | struct Session *session; | 877 | struct Session *session; |
890 | 878 | ||
879 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
880 | "Transport solicits for %s\n", | ||
881 | GNUNET_i2s (pid)); | ||
891 | session = find_session (pid); | 882 | session = find_session (pid); |
892 | if (NULL == session) | 883 | if (NULL == session) |
893 | return; | 884 | return; |
894 | session->ready_to_transmit = GNUNET_YES; | ||
895 | try_transmission (session); | 885 | try_transmission (session); |
896 | } | 886 | } |
897 | 887 | ||