Changeset 20704

Show
Ignore:
Timestamp:
08/13/07 08:13:34 (1 year ago)
Author:
patrick
Message:

Only print an error message if PR_Recv() did not return a timeout error.
That case is handled differently.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/vapor/vpr/md/NSPR/IO/Socket/SocketImplNSPR.cpp

    r19272 r20704  
    381381   { 
    382382      const PRErrorCode err_code = PR_GetError(); 
    383  
    384       std::ostringstream err_stream; 
    385       vpr::Error::outputCurrentError(err_stream, "Read failed"); 
    386       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL) 
    387          << "[vpr::SocketImplNSPR::read_i()] " << err_stream.str() 
    388          << vprDEBUG_FLUSH; 
     383      if ( err_code != PR_IO_TIMEOUT_ERROR ) 
     384      { 
     385         std::ostringstream err_stream; 
     386         vpr::Error::outputCurrentError(err_stream, "Read failed"); 
     387         vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL) 
     388            << "[vpr::SocketImplNSPR::read_i()] " << err_stream.str() 
     389            << vprDEBUG_FLUSH; 
     390      } 
    389391 
    390392      bytesRead = 0;