mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
it's safe to do parallel directory fetches/uploads
svn:r477
This commit is contained in:
parent
9fe1ed26ff
commit
39fd5dd405
@ -30,10 +30,13 @@ void directory_initiate_command(routerinfo_t *router, int command) {
|
||||
if(!router) /* i guess they didn't have one in mind for me to use */
|
||||
return;
|
||||
|
||||
#if 0 /* there's no problem with parallel get/posts now. whichever 'get' ends
|
||||
last is the directory. */
|
||||
if(connection_get_by_type(CONN_TYPE_DIR)) { /* there's already a dir conn running */
|
||||
log_fn(LOG_DEBUG,"Canceling connect, dir conn already active.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(command == DIR_CONN_STATE_CONNECTING_FETCH)
|
||||
log_fn(LOG_DEBUG,"initiating directory fetch");
|
||||
|
Loading…
Reference in New Issue
Block a user