This is an automated email from the ASF dual-hosted git repository.

josephwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 4ecd463ed3c8c34176aeb814ccba599ce3944d61
Author: Joseph Wu <[email protected]>
AuthorDate: Wed Oct 9 18:20:01 2019 -0700

    SSL Socket: Windows: Guarded the SSL-only connect method.
    
    Since the new SSL socket class wraps the PollSocket, the
    Windows version of the PollSocket needs to be guarded
    for SSL-only methods.
    
    Review: https://reviews.apache.org/r/71662
---
 3rdparty/libprocess/src/windows/poll_socket.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/3rdparty/libprocess/src/windows/poll_socket.cpp 
b/3rdparty/libprocess/src/windows/poll_socket.cpp
index e2a8469..9c64886 100644
--- a/3rdparty/libprocess/src/windows/poll_socket.cpp
+++ b/3rdparty/libprocess/src/windows/poll_socket.cpp
@@ -162,6 +162,16 @@ Future<Nothing> PollSocketImpl::connect(
 }
 
 
+#ifdef USE_SSL_SOCKET
+Future<Nothing> PollSocketImpl::connect(
+    const Address& address,
+    const openssl::TLSClientConfig& config)
+{
+  LOG(FATAL) << "TLS config was passed to a PollSocket.";
+}
+#endif
+
+
 Future<size_t> PollSocketImpl::recv(char* data, size_t size)
 {
   // Need to hold a copy of `this` so that the underlying socket

Reply via email to