diff options
author | Ian Goldberg <iang@cs.uwaterloo.ca> | 2011-07-21 09:49:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-21 09:49:00 -0400 |
commit | a2bd0397ff2388a6e5a09e0cb8253f4dccf63e21 (patch) | |
tree | 06ef7822331f1e7e07b8ca707e3a9e835992dea1 /src/or | |
parent | 2f0fadbe8bc8085558acb654e9e549e769e7401e (diff) | |
download | tor-a2bd0397ff2388a6e5a09e0cb8253f4dccf63e21.tar.gz tor-a2bd0397ff2388a6e5a09e0cb8253f4dccf63e21.zip |
Improve log messages for optimistic data retry
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection_edge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index a7e3c1656b..4d3e25458e 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2441,8 +2441,10 @@ connection_ap_handshake_send_begin(edge_connection_t *ap_conn) if ((connection_get_inbuf_len(TO_CONN(ap_conn)) || ap_conn->sending_optimistic_data) && connection_ap_supports_optimistic_data(ap_conn)) { - log_info(LD_APP, "Sending up to %ld bytes of queued-up data", - connection_get_inbuf_len(TO_CONN(ap_conn))); + log_info(LD_APP, "Sending up to %ld + %ld bytes of queued-up data", + connection_get_inbuf_len(TO_CONN(ap_conn)), + ap_conn->sending_optimistic_data ? + generic_buffer_len(ap_conn->sending_optimistic_data) : 0); if (connection_edge_package_raw_inbuf(ap_conn, 1, NULL) < 0) { connection_mark_for_close(TO_CONN(ap_conn)); } |