1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Add IoClient and IoSession interfaces.

These interfaces allow the HttpClient and HttpSession objects to work with protocols other than TLS, .e.g. plain sockets. This is necessary to allow standard HTTP -- right now only HTTPS is allowed, i.e. HTTP over TLS.

For now only TlsClient and TlsSession have been converted to the new interfaces. SocketClient and SocketSession will also need to be converted but first sckSessionReadyRead() and sckSessionReadyWrite() need to be moved into the IoRead and IoWrite interfaces, since they are not a good fit for IoSession.
This commit is contained in:
David Steele
2020-08-08 10:39:39 -04:00
committed by GitHub
parent 9b7fd1a894
commit 111d33c123
26 changed files with 678 additions and 272 deletions

View File

@@ -915,10 +915,6 @@ src/common/io/tls/session.h:
class: core
type: c/h
src/common/io/tls/session.intern.h:
class: core
type: c/h
src/common/io/write.c:
class: core
type: c