The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
POCO 1.13.1
I use WebSocket client and set recv timeout 20s. recv thread execute while { recv() }, other thread call shutdown().
It can work well on win10 、win11. the recv thread can catch exception invalid sock and the thread can exit promptly.
But on win7 the recv thread can not catch exception invalid sock, 20s later catch exception timeout and the thread can't exit promptly.
while { recv() }
, other thread callshutdown()
. It can work well on win10 、win11. the recv thread can catch exceptioninvalid sock
and the thread can exit promptly. But on win7 the recv thread can not catch exceptioninvalid sock
, 20s later catch exceptiontimeout
and the thread can't exit promptly.