the TimeoutException works fine on Linux but crashes on MSWindows when built with mingw.
- Code: Select all
Timespan to; to.assign (3, 0); socket.setReceiveTimeout(to);
try{
int n= socket.receiveBytes(buffer, BUFFER_SIZE);
if (n<=0){
/*
Connection lost...
*/
}
/*
process buffer...
*/
}
catch(TimeoutException &x){
/*
Processed OK on Linux but never really gets here on timeout
using mingw on MSWindows.
*/
}
Everything else seems to work fine (other threads with WebSocket/SSL, other socket connections).
Any suggestions would be appreciated.





