mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
give a better log message when we don't have a good mirror of
the directory yet and somebody asks for it. svn:r3464
This commit is contained in:
parent
dba507ef4b
commit
cab0138e4c
@ -874,7 +874,7 @@ directory_handle_command_get(connection_t *conn, char *headers,
|
|||||||
tor_free(url);
|
tor_free(url);
|
||||||
|
|
||||||
if (dlen == 0) {
|
if (dlen == 0) {
|
||||||
log_fn(LOG_NOTICE,"My directory is empty. Closing.");
|
log_fn(LOG_NOTICE,"Client asked for the mirrored directory, but we don't have a good one yet. Sending 503 Dir not available.");
|
||||||
write_http_status_line(conn, 503, "Directory unavailable");
|
write_http_status_line(conn, 503, "Directory unavailable");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user