diff options
author | Roger Dingledine <arma@torproject.org> | 2003-09-16 20:57:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-09-16 20:57:09 +0000 |
commit | 6f46316c319277d68ac44697221f1f9881c1d197 (patch) | |
tree | 6014ee9c0ef670d33cbede5d8814d245347faadb /src/or/directory.c | |
parent | 5f9ac2bdfd43c4abe354192d0c266958c0f0bc56 (diff) | |
download | tor-6f46316c319277d68ac44697221f1f9881c1d197.tar.gz tor-6f46316c319277d68ac44697221f1f9881c1d197.zip |
bugfixes and refactoringstor-0.0.2pre8
svn:r468
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index db2287b7c5..7d1d7d0f55 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -21,6 +21,7 @@ static int reading_headers=0; static int directory_dirty=1; static char getstring[] = "GET / HTTP/1.0\r\n\r\n"; +static char poststring[] = "POST / HTTP/1.0\r\n\r\n"; static char answerstring[] = "HTTP/1.0 200 OK\r\n\r\n"; /********* END VARIABLES ************/ @@ -132,7 +133,7 @@ int connection_dir_process_inbuf(connection_t *conn) { if(router_get_dir_from_string(the_directory, conn->pkey) < 0) { log_fn(LOG_DEBUG,"...but parsing failed. Ignoring."); } else { - log_fn(LOG_DEBUG,"and got a %s directory; updated routers.", + log_fn(LOG_DEBUG,"and got an %s directory; updated routers.", conn->pkey ? "authenticated" : "unauthenticated"); } @@ -235,7 +236,6 @@ int connection_dir_finished_flushing(connection_t *conn) { case DIR_CONN_STATE_CONNECTING: if (getsockopt(conn->s, SOL_SOCKET, SO_ERROR, (void*)&e, &len) < 0) { /* not yet */ if(!ERRNO_CONN_EINPROGRESS(errno)) { - /* yuck. kill it. */ log_fn(LOG_DEBUG,"in-progress connect failed. Removing."); router_forget_router(conn->addr, conn->port); /* don't try him again */ return -1; |