Skip to content

Commit 8779f3b

Browse files
committed
Only call setAdvertisedNextProtocols() if it is available
1 parent 6127dc2 commit 8779f3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rsocket/transports/tcp/TcpConnectionFactory.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class ConnectCallback : public folly::AsyncSocket::ConnectCallback {
4444

4545
if (sslContext) {
4646
VLOG(3) << "Starting SSL socket";
47+
#if FOLLY_OPENSSL_HAS_ALPN
4748
sslContext->setAdvertisedNextProtocols({"rs"});
49+
#endif // FOLLY_OPENSSL_HAS_ALPN
4850
socket_.reset(new folly::AsyncSSLSocket(sslContext, evb));
4951
} else {
5052
VLOG(3) << "Starting socket";

0 commit comments

Comments
 (0)