mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
attempt clean up ernoodesc on windows
This commit is contained in:
parent
684486e7e0
commit
bed8c99ab7
@ -389,7 +389,11 @@ namespace mongo {
|
||||
NULL);
|
||||
if( errorText ) {
|
||||
string x = toUtf8String(errorText);
|
||||
s << x;
|
||||
for( string::iterator i = x.begin(); i != x.end(); i++ ) {
|
||||
if( *i == '\n' || *i == '\r' )
|
||||
break;
|
||||
s << *i;
|
||||
}
|
||||
LocalFree(errorText);
|
||||
}
|
||||
else
|
||||
|
@ -576,7 +576,7 @@ namespace mongo {
|
||||
if ( ret == -1 ) {
|
||||
int e = errno;
|
||||
if ( e != EAGAIN || _timeout == 0 ) {
|
||||
log(_logLevel) << "MessagingPort recv() " << errnoWithDescription(e) << " " << farEnd.toString()<<endl;
|
||||
log(_logLevel) << "MessagingPort recv() " << errnoWithDescription(e) << " " << farEnd.toString() <<endl;
|
||||
throw SocketException( SocketException::RECV_ERROR );
|
||||
} else {
|
||||
if ( !serverAlive( farEnd.toString() ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user