Overview
Features
Download
Documentation
Community
Add-Ons & Services

TimeoutException Failure Using Mingw

Please post support and help requests here.

TimeoutException Failure Using Mingw

Postby steve » 26 Jan 2013, 23:56

In a service handler for SocketAcceptor using a SocketReactor and ServerSocket,
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.
steve
 
Posts: 3
Joined: 17 Jan 2013, 21:31

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron