-
- Downloads
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>
Showing
- changes/ticket40257 3 additions, 0 deletionschanges/ticket40257
- src/core/mainloop/connection.c 2 additions, 0 deletionssrc/core/mainloop/connection.c
- src/feature/metrics/metrics.c 18 additions, 3 deletionssrc/feature/metrics/metrics.c
- src/feature/metrics/metrics.h 1 addition, 0 deletionssrc/feature/metrics/metrics.h
- src/test/test_metrics.c 27 additions, 5 deletionssrc/test/test_metrics.c
Loading
Please register or sign in to comment