1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Add SocketClient object.

This functionality was embedded into TlsClient but that was starting to get unwieldy.

Add SocketClient to contain all socket-related client functionality.
This commit is contained in:
David Steele
2020-03-31 12:43:29 -04:00
parent abb7639807
commit 8989118cc6
14 changed files with 487 additions and 208 deletions

View File

@ -186,6 +186,12 @@ cmdEnd(int code, const String *errorMessage)
{
MEM_CONTEXT_TEMP_BEGIN()
{
// Log socket statistics
String *sckClientStat = sckClientStatStr();
if (sckClientStat != NULL)
LOG_DETAIL(strPtr(sckClientStat));
// Log tls statistics
String *tlsClientStat = tlsClientStatStr();