mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
clean up some comments
svn:r5644
This commit is contained in:
parent
35986a2374
commit
7cc53c2281
@ -447,9 +447,10 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
|
|||||||
|
|
||||||
switch (connection_connect(conn, conn->address, addr, port)) {
|
switch (connection_connect(conn, conn->address, addr, port)) {
|
||||||
case -1:
|
case -1:
|
||||||
|
/* If the connection failed immediately, and we're using
|
||||||
|
* an https proxy, our https proxy is down. Don't blame the
|
||||||
|
* Tor server. */
|
||||||
if (!options->HttpsProxy) {
|
if (!options->HttpsProxy) {
|
||||||
/* If the connection failed immediately, our https proxy
|
|
||||||
* is down. Don't blame the Tor server. */
|
|
||||||
router_mark_as_down(conn->identity_digest);
|
router_mark_as_down(conn->identity_digest);
|
||||||
helper_node_set_status(conn->identity_digest, 0);
|
helper_node_set_status(conn->identity_digest, 0);
|
||||||
}
|
}
|
||||||
@ -474,8 +475,8 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
|
|||||||
/** Begin the tls handshake with <b>conn</b>. <b>receiving</b> is 0 if
|
/** Begin the tls handshake with <b>conn</b>. <b>receiving</b> is 0 if
|
||||||
* we initiated the connection, else it's 1.
|
* we initiated the connection, else it's 1.
|
||||||
*
|
*
|
||||||
* Assign a new tls object to conn->tls, begin reading on <b>conn</b>, and pass
|
* Assign a new tls object to conn->tls, begin reading on <b>conn</b>, and
|
||||||
* <b>conn</b> to connection_tls_continue_handshake().
|
* pass <b>conn</b> to connection_tls_continue_handshake().
|
||||||
*
|
*
|
||||||
* Return -1 if <b>conn</b> is broken, else return 0.
|
* Return -1 if <b>conn</b> is broken, else return 0.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user