Skip to content

Commit

Permalink
fix(Net): PollSet loop; suppress test WebSocket handler shutdown IOEx…
Browse files Browse the repository at this point in the history
…eption
  • Loading branch information
aleks-f committed Nov 26, 2023
1 parent 351dcae commit 405e0ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Net/src/PollSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class PollSetImpl
Poco::Timespan remainingTime(timeout);
int rc;

do
while (true)
{
Poco::Timestamp start;
rc = epoll_wait(_epollfd, &_events[0],
Expand All @@ -195,8 +195,8 @@ class PollSetImpl
}
else SocketImpl::error();
}
break;
}
while (false);

ScopedLock lock(_mutex);

Expand Down
4 changes: 4 additions & 0 deletions Net/testsuite/src/WebSocketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ using Poco::Net::SocketStream;
using Poco::Net::WebSocket;
using Poco::Net::WebSocketException;
using Poco::Net::ConnectionAbortedException;
using Poco::IOException;


namespace
Expand Down Expand Up @@ -80,6 +81,9 @@ namespace
catch (ConnectionAbortedException&)
{
}
catch (IOException&)
{
}
}

private:
Expand Down

0 comments on commit 405e0ea

Please sign in to comment.