Commit 95478cc4 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Quick fix for OpenSSL 1.1.0 on Windows

Summary:
This was treating a socket as a file descriptor, so make it explicitly be a file descriptor instead.
The full fix for this requires a *lot* of refactoring and splitting of a lot of concepts within Folly, so this short-term fix should be good enough for now.

Reviewed By: boguscoder

Differential Revision: D14266198

fbshipit-source-id: bafb3a403ab8555f865f4541323c5d0ad81f5052
parent 3f7a734c
...@@ -1015,7 +1015,8 @@ bool AsyncSSLSocket::willBlock( ...@@ -1015,7 +1015,8 @@ bool AsyncSSLSocket::willBlock(
return false; return false;
} }
auto asyncPipeReader = AsyncPipeReader::newReader(eventBase_, ofd); auto asyncPipeReader =
AsyncPipeReader::newReader(eventBase_, NetworkSocket(ofd).toFd());
auto asyncPipeReaderPtr = asyncPipeReader.get(); auto asyncPipeReaderPtr = asyncPipeReader.get();
if (!asyncOperationFinishCallback_) { if (!asyncOperationFinishCallback_) {
asyncOperationFinishCallback_.reset( asyncOperationFinishCallback_.reset(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment