Skip to content

Commit

Permalink
fix(PollSet): HTTPServerConnection::onServerStopped does not halt poll
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Oct 23, 2023
1 parent 9ad2bc7 commit 79be4ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Net/src/PollSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ class PollSetImpl

void wakeUp()
{
uint64_t val = 1;
#ifdef WEPOLL_H_
StreamSocket ss(SocketAddress("127.0.0.1", _port));
ss.impl()->sendBytes(&val, sizeof(val));
#else
uint64_t val = 1;
// This is guaranteed to write into a valid fd,
// or 0 (meaning PollSet is being destroyed).
// Errors are ignored.
Expand Down

0 comments on commit 79be4ea

Please sign in to comment.