mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
set the circ windows on the middle hop of the rend circs
svn:r1511
This commit is contained in:
+1
-1
@@ -945,7 +945,7 @@ void circuit_log_path(int severity, circuit_t *circ) {
|
||||
router->nickname, states[hop->state]);
|
||||
} else {
|
||||
if(circ->purpose == CIRCUIT_PURPOSE_C_REND_JOINED) {
|
||||
snprintf(s, sizeof(buf) - (s - buf), "(rend join)");
|
||||
snprintf(s, sizeof(buf) - (s - buf), "(rendjoin hop)");
|
||||
} else {
|
||||
snprintf(s, sizeof(buf) - (s - buf), "UNKNOWN ");
|
||||
}
|
||||
|
||||
@@ -210,6 +210,12 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
|
||||
/* All is well. Extend the circuit. */
|
||||
circ->purpose = CIRCUIT_PURPOSE_C_REND_JOINED;
|
||||
hop->state = CPATH_STATE_OPEN;
|
||||
/* set the windows to default. these are the windows
|
||||
* that alice thinks bob has.
|
||||
*/
|
||||
hop->package_window = CIRCWINDOW_START;
|
||||
hop->deliver_window = CIRCWINDOW_START;
|
||||
|
||||
onion_append_to_cpath(&circ->cpath, hop);
|
||||
circ->build_state->pending_final_cpath = NULL; /* prevent double-free */
|
||||
|
||||
|
||||
@@ -593,6 +593,12 @@ rend_service_rendezvous_is_ready(circuit_t *circuit)
|
||||
|
||||
/* Append the cpath entry. */
|
||||
hop->state = CPATH_STATE_OPEN;
|
||||
/* set the windows to default. these are the windows
|
||||
* that bob thinks alice has.
|
||||
*/
|
||||
hop->package_window = CIRCWINDOW_START;
|
||||
hop->deliver_window = CIRCWINDOW_START;
|
||||
|
||||
onion_append_to_cpath(&circuit->cpath, hop);
|
||||
circuit->build_state->pending_final_cpath = NULL; /* prevent double-free */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user