aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-28 06:48:20 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-28 06:48:20 +0000
commitc4c66e2c7f1184336d5a9997d049ba4e28137c39 (patch)
tree662e8507c686a12e82050fb6ccece837bcab43f5 /src/or/connection.c
parent677707433e562eec675d5e6e487a008364ebea5b (diff)
downloadtor-c4c66e2c7f1184336d5a9997d049ba4e28137c39.tar
tor-c4c66e2c7f1184336d5a9997d049ba4e28137c39.tar.gz
expand the scheduler to address SSL_read()'s pending bytes
svn:r505
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 20522b848..5c97142e4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -25,7 +25,7 @@ char *conn_type_to_string[] = {
"CPU worker", /* 11 */
};
-char *conn_state_to_string[][15] = {
+char *conn_state_to_string[][_CONN_TYPE_MAX+1] = {
{ NULL }, /* no type associated with 0 */
{ "ready" }, /* op listener, 0 */
{ "awaiting keys", /* op, 0 */
@@ -509,9 +509,6 @@ int connection_read_to_buf(connection_t *conn) {
return 0;
}
}
- if(connection_speaks_cells(conn) && conn->state != OR_CONN_STATE_CONNECTING)
- if(result == at_most)
- return connection_read_to_buf(conn);
return 0;
}