TimeoutException Failure Using Mingw

Please post support and help requests here.
steve
Posts: 3
Joined: 17 Jan 2013, 21:31

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.

Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest