mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix some messages that say "failing".
svn:r4955
This commit is contained in:
parent
d410c49965
commit
659491bbc6
@ -749,7 +749,7 @@ connection_dir_client_reached_eof(connection_t *conn)
|
|||||||
&headers, MAX_HEADERS_SIZE,
|
&headers, MAX_HEADERS_SIZE,
|
||||||
&body, &body_len, MAX_DIR_SIZE)) {
|
&body, &body_len, MAX_DIR_SIZE)) {
|
||||||
case -1: /* overflow */
|
case -1: /* overflow */
|
||||||
log_fn(LOG_WARN,"'fetch' response too large (server '%s:%d'). Failing.", conn->address, conn->port);
|
log_fn(LOG_WARN,"'fetch' response too large (server '%s:%d'). Closing.", conn->address, conn->port);
|
||||||
return -1;
|
return -1;
|
||||||
case 0:
|
case 0:
|
||||||
log_fn(LOG_INFO,"'fetch' response not all here, but we're at eof. Closing.");
|
log_fn(LOG_INFO,"'fetch' response not all here, but we're at eof. Closing.");
|
||||||
@ -847,7 +847,7 @@ connection_dir_client_reached_eof(connection_t *conn)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (status_code != 200) {
|
if (status_code != 200) {
|
||||||
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. Failing.",
|
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. I'll try again soon.",
|
||||||
status_code, reason, conn->address, conn->port);
|
status_code, reason, conn->address, conn->port);
|
||||||
tor_free(body); tor_free(headers); tor_free(reason);
|
tor_free(body); tor_free(headers); tor_free(reason);
|
||||||
return -1;
|
return -1;
|
||||||
@ -867,7 +867,7 @@ connection_dir_client_reached_eof(connection_t *conn)
|
|||||||
/* just update our list of running routers, if this list is new info */
|
/* just update our list of running routers, if this list is new info */
|
||||||
log_fn(LOG_INFO,"Received running-routers list (size %d)", (int)body_len);
|
log_fn(LOG_INFO,"Received running-routers list (size %d)", (int)body_len);
|
||||||
if (status_code != 200) {
|
if (status_code != 200) {
|
||||||
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. Failing.",
|
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. I'll try again soon.",
|
||||||
status_code, reason, conn->address, conn->port);
|
status_code, reason, conn->address, conn->port);
|
||||||
tor_free(body); tor_free(headers); tor_free(reason);
|
tor_free(body); tor_free(headers); tor_free(reason);
|
||||||
return -1;
|
return -1;
|
||||||
@ -892,7 +892,7 @@ connection_dir_client_reached_eof(connection_t *conn)
|
|||||||
char *cp;
|
char *cp;
|
||||||
log_fn(LOG_INFO,"Received networkstatus objects (size %d) from server '%s:%d'",(int) body_len, conn->address, conn->port);
|
log_fn(LOG_INFO,"Received networkstatus objects (size %d) from server '%s:%d'",(int) body_len, conn->address, conn->port);
|
||||||
if (status_code != 200) {
|
if (status_code != 200) {
|
||||||
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. Failing.",
|
log_fn(LOG_WARN,"Received http status code %d (\"%s\") from server '%s:%d'. I'll try again soon.",
|
||||||
status_code, reason, conn->address, conn->port);
|
status_code, reason, conn->address, conn->port);
|
||||||
tor_free(body); tor_free(headers); tor_free(reason);
|
tor_free(body); tor_free(headers); tor_free(reason);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user