We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f149eea commit e52b002Copy full SHA for e52b002
rsocket/transports/tcp/TcpConnectionFactory.cpp
@@ -43,8 +43,14 @@ class ConnectCallback : public folly::AsyncSocket::ConnectCallback {
43
DCHECK(evb);
44
45
if (sslContext) {
46
+#if !FOLLY_OPENSSL_HAS_ALPN
47
+ // setAdvertisedNextProtocols() is unavailable
48
+#error ALPN is required for rsockets. \
49
+ Your version of OpenSSL is likely too old.
50
+#else
51
VLOG(3) << "Starting SSL socket";
52
sslContext->setAdvertisedNextProtocols({"rs"});
53
+#endif
54
socket_.reset(new folly::AsyncSSLSocket(sslContext, evb));
55
} else {
56
VLOG(3) << "Starting socket";
0 commit comments