conn: Properly close MetricsPort socket on EOF

Handle the EOF situation for a metrics connection. Furthermore, if we failed
to fetch the data from the inbuf properly, mark the socket as closed because
the caller, connection_process_inbuf(), assumes that we did so on error.

Fixes #40257

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2021-01-27 09:34:34 -05:00
committed by Nick Mathewson
parent f420eacf18
commit 01c4abc2d4
5 changed files with 51 additions and 8 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor bugfixes (metrics port):
- Fix a bug warning when the socket was unexpectedly closed. Fixes bug
40257; bugfix on 0.4.5.1-alpha