Commit fee6a716 authored by Joseph Noir's avatar Joseph Noir

Make socket non-blocking before calling SSL accept

parent e498cf2d
......@@ -186,6 +186,7 @@ public:
return false;
auto& dm = acceptor_.backend();
auto fd = acceptor_.accepted_socket();
io::network::nonblocking(fd, true);
auto sssn = make_session(parent()->system(), fd, true);
if (sssn == nullptr) {
CAF_LOG_ERROR("Unable to create SSL session for accepted socket");
......
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