Skip to content

Commit 1fd012c

Browse files
authored
Merge pull request #64 from barrystyle/bugfix/replace-netsocketfds
Add receive socket fds
2 parents 3e6a19a + 38510e3 commit 1fd012c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/net.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,10 @@ void CConnman::SocketEvents(std::set<SOCKET> &recv_set, std::set<SOCKET> &send_s
14141414
}
14151415

14161416
std::unordered_map<SOCKET, struct pollfd> pollfds;
1417+
for (SOCKET socket_id : recv_select_set) {
1418+
pollfds[socket_id].fd = socket_id;
1419+
pollfds[socket_id].events |= POLLIN;
1420+
}
14171421

14181422
for (SOCKET socket_id : send_select_set) {
14191423
pollfds[socket_id].fd = socket_id;

0 commit comments

Comments
 (0)