Commit 39fd5dd4 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

it's safe to do parallel directory fetches/uploads


svn:r477
parent 9fe1ed26
...@@ -30,10 +30,13 @@ void directory_initiate_command(routerinfo_t *router, int command) { ...@@ -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 */ if(!router) /* i guess they didn't have one in mind for me to use */
return; 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 */ 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."); log_fn(LOG_DEBUG,"Canceling connect, dir conn already active.");
return; return;
} }
#endif
if(command == DIR_CONN_STATE_CONNECTING_FETCH) if(command == DIR_CONN_STATE_CONNECTING_FETCH)
log_fn(LOG_DEBUG,"initiating directory fetch"); log_fn(LOG_DEBUG,"initiating directory fetch");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment