[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #8879 [Tor]: pidgin fails to do socks5 handshake with username/password auth
#8879: pidgin fails to do socks5 handshake with username/password auth
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version:
Keywords: tor-client | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by arma):
For posterity, here's the patch that provided the extra debugging lines
above:
{{{
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 47fa31d..1ef46ad 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -645,6 +645,11 @@ read_to_chunk(buf_t *buf, chunk_t *chunk,
tor_socket_t fd,
size_t at_most,
*reached_eof = 1;
return 0;
} else { /* actually got bytes. */
+ {
+ int i;
+ for (i = chunk->datalen; i < chunk->datalen + read_result; i++)
+ log_debug(LD_NET,"New byte %d is '%u'", i, *(chunk->data + i));
+ }
buf->datalen += read_result;
chunk->datalen += read_result;
log_debug(LD_NET,"Read %ld bytes. %d on inbuf.", (long)read_result,
diff --git a/src/or/connection.c b/src/or/connection.c
index 87fa799..8b50e20 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -3714,6 +3714,11 @@ connection_write_to_buf_impl_(const char *string,
size_t len,
dir_conn->zlib_state,
string, len, done));
} else {
+ {
+ int i;
+ for (i = 0; i < len; i++)
+ log_debug(LD_NET,"Wrote byte %d: '%u'", i, string[i]);
+ }
CONN_LOG_PROTECT(conn, r = write_to_buf(string, len, conn->outbuf));
}
if (r < 0) {
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8879#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs