CURL_POLL_INOUT action handle added (#2365)

Co-authored-by: glebpinigin <glebpinigin@example.com>
This commit is contained in:
glebpinigin
2024-05-07 15:52:37 +03:00
committed by GitHub
parent a0a2a513b2
commit c6e6a89661

View File

@@ -204,6 +204,12 @@ int HTTPFileSource::Impl::handleSocket(
static_cast<int>(s), util::RunLoop::Event::Write, std::bind(&Impl::perform, context, _1, _2));
break;
}
case CURL_POLL_INOUT: {
using namespace std::placeholders;
util::RunLoop::Get()->addWatch(
static_cast<int>(s), util::RunLoop::Event::ReadWrite, std::bind(&Impl::perform, context, _1, _2));
break;
}
case CURL_POLL_REMOVE:
util::RunLoop::Get()->removeWatch(static_cast<int>(s));
break;