Fix outgoing data sockets not getting cleaned up on peer close

This commit is contained in:
Michael Theall 2024-01-10 16:46:01 -06:00
parent 92d41826b7
commit e6e6d83dcf

View File

@ -546,7 +546,7 @@ bool FtpSession::poll (std::vector<UniqueFtpSession> const &sessions_)
else
{
assert (session->m_send);
pollInfo.emplace_back (Socket::PollInfo{*session->m_dataSocket, POLLOUT, 0});
pollInfo.emplace_back (Socket::PollInfo{*session->m_dataSocket, POLLOUT | POLLIN, 0});
}
break;
}