aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-07-22 04:08:37 +0000
committerRoger Dingledine <arma@torproject.org>2002-07-22 04:08:37 +0000
commitcd0760ddda650c147ba21b933cebef5008eb645e (patch)
tree4665fda0f0145ef5fad4eacd8686ab66c3dd1e7b /src/or/main.c
parenta303325dca17f198722302b7d6188dbe68dd314d (diff)
downloadtor-cd0760ddda650c147ba21b933cebef5008eb645e.tar
tor-cd0760ddda650c147ba21b933cebef5008eb645e.tar.gz
Code cleaned up to be less noisy
svn:r71
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c96cf3930..dadfd9aa7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -68,13 +68,13 @@ int connection_remove(connection_t *conn) {
assert(conn);
assert(nfds>0);
+ log(LOG_INFO,"connection_remove(): removing socket %d, nfds now %d",conn->s, nfds-1);
circuit_about_to_close_connection(conn); /* flush and send destroys for all circuits on this conn */
current_index = conn->poll_index;
if(current_index == nfds-1) { /* this is the end */
// connection_free(conn);
nfds--;
- log(LOG_INFO,"connection_remove(): nfds now %d.",nfds);
return 0;
}
@@ -86,8 +86,6 @@ int connection_remove(connection_t *conn) {
connection_array[current_index] = connection_array[nfds];
connection_array[current_index]->poll_index = current_index;
- log(LOG_INFO,"connection_remove(): nfds now %d.",nfds);
-
return 0;
}
@@ -285,7 +283,7 @@ void check_conn_read(int i) {
}
if(retval < 0) { /* this connection is broken. remove it */
- log(LOG_DEBUG,"check_conn_read(): Connection broken, removing.");
+ log(LOG_INFO,"check_conn_read(): Connection broken, removing.");
connection_remove(conn);
connection_free(conn);
if(i<nfds) { /* we just replaced the one at i with a new one.