aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-10-13 21:57:02 +0000
committerRoger Dingledine <arma@torproject.org>2007-10-13 21:57:02 +0000
commite269feea77e7cf38a6986edcfaa2e7a2d1d33afc (patch)
treeeb70f0f7c4bd74d762fe6472716faf038115d89d /src/or/directory.c
parentbe04b53f308620a7d9b097b4153f4d1041ddf9c4 (diff)
downloadtor-e269feea77e7cf38a6986edcfaa2e7a2d1d33afc.tar
tor-e269feea77e7cf38a6986edcfaa2e7a2d1d33afc.tar.gz
stop handling 403 responses from directory authorities/mirrors. we
haven't issued those in years. svn:r11913
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 224b25dfb..95143449a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1344,8 +1344,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
log_info(LD_DIR,"Received networkstatus objects (size %d) from server "
"'%s:%d'",(int) body_len, conn->_base.address, conn->_base.port);
if (status_code != 200) {
- int dir_okay = status_code == 403;
- log_fn(dir_okay ? LOG_INFO : LOG_WARN, LD_DIR,
+ log_warn(LD_DIR,
"Received http status code %d (%s) from server "
"'%s:%d' while fetching \"/tor/status/%s\". I'll try again soon.",
status_code, escaped(reason), conn->_base.address,
@@ -1405,7 +1404,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
if (conn->_base.purpose == DIR_PURPOSE_FETCH_CONSENSUS) {
if (status_code != 200) {
- log_fn(status_code == 403 ? LOG_INFO : LOG_WARN, LD_DIR,
+ log_warn(LD_DIR,
"Received http status code %d (%s) from server "
"'%s:%d' while fetching consensus directory.",
status_code, escaped(reason), conn->_base.address,
@@ -1427,7 +1426,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
}
if (conn->_base.purpose == DIR_PURPOSE_FETCH_CERTIFICATE) {
if (status_code != 200) {
- log_fn(status_code == 403 ? LOG_INFO : LOG_WARN, LD_DIR,
+ log_warn(LD_DIR,
"Received http status code %d (%s) from server "
"'%s:%d' while fetching \"/tor/keys/%s\".",
status_code, escaped(reason), conn->_base.address,
@@ -1450,7 +1449,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
log_info(LD_DIR,"Got votes (size %d) from server %s:%d",
(int) body_len, conn->_base.address, conn->_base.port);
if (status_code != 200) {
- log_fn(status_code == 403 ? LOG_INFO : LOG_WARN, LD_DIR,
+ log_warn(LD_DIR,
"Received http status code %d (%s) from server "
"'%s:%d' while fetching \"/tor/status-vote/next/%s.z\".",
status_code, escaped(reason), conn->_base.address,
@@ -1469,7 +1468,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
log_info(LD_DIR,"Got detached signatures (size %d) from server %s:%d",
(int) body_len, conn->_base.address, conn->_base.port);
if (status_code != 200) {
- log_fn(status_code == 403 ? LOG_INFO : LOG_WARN, LD_DIR,
+ log_warn(LD_DIR,
"Received http status code %d (%s) from server "
"'%s:%d' while fetching \"/tor/status-vote/consensus-signatures.z\".",
status_code, escaped(reason), conn->_base.address,
@@ -1507,7 +1506,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
n_asked_for = smartlist_len(which);
}
if (status_code != 200) {
- int dir_okay = status_code == 404 || status_code == 403 ||
+ int dir_okay = status_code == 404 ||
(status_code == 400 && !strcmp(reason, "Servers unavailable."));
/* 404 means that it didn't have them; no big deal.
* Older (pre-0.1.1.8) servers said 400 Servers unavailable instead. */
@@ -1591,18 +1590,6 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
"BAD_SERVER_DESCRIPTOR DIRAUTH=%s:%d REASON=\"%s\"",
conn->_base.address, conn->_base.port, escaped(reason));
break;
- case 403:
- log_warn(LD_GENERAL,
- "http status 403 (%s) response from dirserver "
- "'%s:%d'. Is your clock skewed? Have you mailed us your key "
- "fingerprint? Are you using the right key? Are you using a "
- "private IP address? See http://tor.eff.org/doc/"
- "tor-doc-server.html",escaped(reason), conn->_base.address,
- conn->_base.port);
- control_event_server_status(LOG_WARN,
- "BAD_SERVER_DESCRIPTOR DIRAUTH=%s:%d REASON=\"%s\"",
- conn->_base.address, conn->_base.port, escaped(reason));
- break;
default:
log_warn(LD_GENERAL,
"http status %d (%s) reason unexpected while uploading "