瀏覽代碼

r11975@Kushana: nickm | 2007-01-15 17:11:15 -0500
set or_conn->tls_error to 0 on non-error to avoid looking at stale errors.


svn:r9359

Nick Mathewson 18 年之前
父節點
當前提交
11ed4500de
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 5 0
      doc/TODO
  2. 2 0
      src/or/connection.c

+ 5 - 0
doc/TODO

@@ -507,3 +507,8 @@ R - make a page with the hidden service diagrams.
 
 
   - add a page for localizing all tor's components.
   - add a page for localizing all tor's components.
 
 
+  - It would be neat if we had a single place that described _all_ the
+    tor-related tools you can use, and what they give you, and how well they
+    work.  Right now, we don't give a lot of guidance wrt
+    torbutton/foxproxy/privoxy/polipo in any consistent place.
+

+ 2 - 0
src/or/connection.c

@@ -1462,6 +1462,8 @@ connection_read_to_buf(connection_t *conn, int *max_to_read)
     result = read_to_buf_tls(or_conn->tls, at_most, conn->inbuf);
     result = read_to_buf_tls(or_conn->tls, at_most, conn->inbuf);
     if (TOR_TLS_IS_ERROR(result) || result == TOR_TLS_CLOSE)
     if (TOR_TLS_IS_ERROR(result) || result == TOR_TLS_CLOSE)
       or_conn->tls_error = result;
       or_conn->tls_error = result;
+    else
+      or_conn->tls_error = 0;
 
 
     switch (result) {
     switch (result) {
       case TOR_TLS_CLOSE:
       case TOR_TLS_CLOSE: