Minor tidyups - improve logging and comments

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6885 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-07-07 10:19:31 +00:00
parent bfb4ddeb88
commit fb3588357e
3 changed files with 8 additions and 3 deletions

View file

@ -624,7 +624,8 @@ static Class runLoopClass;
} }
else if (errno != EINTR && errno != EAGAIN) else if (errno != EINTR && errno != EAGAIN)
{ {
NSLog(@"read attempt failed - %s", strerror(errno)); NSDebugMLLog(@"GSTcpHandle", @"read attempt failed - %s",
strerror(errno));
[self invalidate]; [self invalidate];
return; return;
} }

View file

@ -2238,6 +2238,10 @@ static NSLock *global_proxies_gate;
{ {
NSString *text = stringFromMsgType(msgid); NSString *text = stringFromMsgType(msgid);
if ([_sendPort isValid] == NO)
{
text = [text stringByAppendingFormat: @" - port was invalidated"];
}
if (raiseException == YES) if (raiseException == YES)
{ {
[NSException raise: NSPortTimeoutException format: text]; [NSException raise: NSPortTimeoutException format: text];

View file

@ -169,9 +169,9 @@ enum
* of this object is not on this host, not on the host the * of this object is not on this host, not on the host the
* NSPortCoder is connected to, but on a *third* host. * NSPortCoder is connected to, but on a *third* host.
* This is why I call this a "triangle connection". In addition * This is why I call this a "triangle connection". In addition
* to decoding the target, we decode the OutPort object that we * to decoding the target, we decode the NSPort object that we
* will use to talk directly to this third host. We send * will use to talk directly to this third host. We send
* [NSConnection +newForInPort:outPort:ancestorConnection:]; this * [NSConnection +connectionWithReceivePort:sendPort:]; this
* will either return the connection already created for this * will either return the connection already created for this
* inPort/outPort pair, or create a new connection if necessary. * inPort/outPort pair, or create a new connection if necessary.
*/ */