This is an automated email from the git hooks/post-receive script.
dgoulet pushed a change to branch main in repository tor.
from f51c68729f Merge branch 'maint-0.4.7' new 0c984e0ec2 conn: Notify btrack subsys on normal OR conn close new e69cf2340b Merge branch 'maint-0.4.5' into maint-0.4.6 new 645eff49ac Merge branch 'maint-0.4.6' into maint-0.4.7 new 4d3f42a6f2 Merge branch 'maint-0.4.7'
The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: changes/ticket40604 | 5 +++++ src/core/or/connection_or.c | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 changes/ticket40604
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 0c984e0ec25ddb6245dc36080565500aa1a62be6 Author: David Goulet dgoulet@torproject.org AuthorDate: Mon Aug 1 10:58:40 2022 -0400
conn: Notify btrack subsys on normal OR conn close
Fixes #40604
Signed-off-by: David Goulet dgoulet@torproject.org --- changes/ticket40604 | 5 +++++ src/core/or/connection_or.c | 4 ++++ 2 files changed, 9 insertions(+)
diff --git a/changes/ticket40604 b/changes/ticket40604 new file mode 100644 index 0000000000..ec24a46e66 --- /dev/null +++ b/changes/ticket40604 @@ -0,0 +1,5 @@ + o Major bugfixes (relay): + - Remove OR connections btrack subsystem entries when the connections + closes normally. Before this, we would only close it on error and thus + leaking memory for each normal OR connections. Fixes bug 40604; bugfix + on 0.4.0.1-alpha. diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c index e3e81ed9cb..0cd3c058ec 100644 --- a/src/core/or/connection_or.c +++ b/src/core/or/connection_or.c @@ -799,6 +799,10 @@ connection_or_about_to_close(or_connection_t *or_conn) } else if (!tor_digest_is_zero(or_conn->identity_digest)) { connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED, tls_error_to_orconn_end_reason(or_conn->tls_error)); + } else { + /* Normal close, we notify of a done connection. */ + connection_or_event_status(or_conn, OR_CONN_EVENT_CLOSED, + END_OR_CONN_REASON_DONE); } }
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit e69cf2340be05aaaa2d4df4085f236742696bf86 Merge: e618a7e445 0c984e0ec2 Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Aug 2 16:08:50 2022 -0400
Merge branch 'maint-0.4.5' into maint-0.4.6
changes/ticket40604 | 5 +++++ src/core/or/connection_or.c | 4 ++++ 2 files changed, 9 insertions(+)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 645eff49ac0c382c8eeb228b31cace885077e5ec Merge: af5ef98d1b e69cf2340b Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Aug 2 16:08:50 2022 -0400
Merge branch 'maint-0.4.6' into maint-0.4.7
changes/ticket40604 | 5 +++++ src/core/or/connection_or.c | 4 ++++ 2 files changed, 9 insertions(+)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 4d3f42a6f2fd0133c4ac2fbdc5c9078ca63442de Merge: f51c68729f 645eff49ac Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Aug 2 16:08:50 2022 -0400
Merge branch 'maint-0.4.7'
changes/ticket40604 | 5 +++++ src/core/or/connection_or.c | 4 ++++ 2 files changed, 9 insertions(+)
tor-commits@lists.torproject.org