Loading src/or/directory.c +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ int connection_dir_process_inbuf(connection_t *conn) { log_fn(LOG_INFO,"Empty directory. Ignoring."); free(directory); connection_mark_for_close(conn,0); return -1; return 0; } if(router_set_routerlist_from_directory(directory, conn->identity_pkey) < 0){ log_fn(LOG_INFO,"...but parsing failed. Ignoring."); Loading src/or/main.c +15 −12 Original line number Diff line number Diff line Loading @@ -176,14 +176,15 @@ static void conn_read(int i) { #ifdef MS_WINDOWS (poll_array[i].revents & POLLERR) || #endif (connection_handle_read(conn) < 0 && !conn->marked_for_close)) { connection_handle_read(conn) < 0) { if (!conn->marked_for_close) { /* this connection is broken. remove it */ /* XXX This shouldn't ever happen anymore. */ log_fn(LOG_ERR,"Unhandled error on read for %s connection (fd %d); removing", conn_type_to_string[conn->type], conn->s); connection_mark_for_close(conn,0); } } assert_connection_ok(conn, time(NULL)); } Loading @@ -200,12 +201,14 @@ static void conn_write(int i) { assert_connection_ok(conn, time(NULL)); if(connection_handle_write(conn) < 0 && !conn->marked_for_close) { if (connection_handle_write(conn) < 0) { if (!conn->marked_for_close) { /* this connection is broken. remove it. */ log_fn(LOG_ERR,"Unhandled error on read for %s connection (fd %d); removing", conn_type_to_string[conn->type], conn->s); connection_mark_for_close(conn,0); } } assert_connection_ok(conn, time(NULL)); } Loading Loading
src/or/directory.c +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ int connection_dir_process_inbuf(connection_t *conn) { log_fn(LOG_INFO,"Empty directory. Ignoring."); free(directory); connection_mark_for_close(conn,0); return -1; return 0; } if(router_set_routerlist_from_directory(directory, conn->identity_pkey) < 0){ log_fn(LOG_INFO,"...but parsing failed. Ignoring."); Loading
src/or/main.c +15 −12 Original line number Diff line number Diff line Loading @@ -176,14 +176,15 @@ static void conn_read(int i) { #ifdef MS_WINDOWS (poll_array[i].revents & POLLERR) || #endif (connection_handle_read(conn) < 0 && !conn->marked_for_close)) { connection_handle_read(conn) < 0) { if (!conn->marked_for_close) { /* this connection is broken. remove it */ /* XXX This shouldn't ever happen anymore. */ log_fn(LOG_ERR,"Unhandled error on read for %s connection (fd %d); removing", conn_type_to_string[conn->type], conn->s); connection_mark_for_close(conn,0); } } assert_connection_ok(conn, time(NULL)); } Loading @@ -200,12 +201,14 @@ static void conn_write(int i) { assert_connection_ok(conn, time(NULL)); if(connection_handle_write(conn) < 0 && !conn->marked_for_close) { if (connection_handle_write(conn) < 0) { if (!conn->marked_for_close) { /* this connection is broken. remove it. */ log_fn(LOG_ERR,"Unhandled error on read for %s connection (fd %d); removing", conn_type_to_string[conn->type], conn->s); connection_mark_for_close(conn,0); } } assert_connection_ok(conn, time(NULL)); } Loading