mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Minor debug improvement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14497 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
45f949e96e
commit
47851f56ed
2 changed files with 25 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-09-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSTcpHandle.m: ([-connectToPort:beforeDate:]) Added more
|
||||||
|
informative logging for problem condition reported by Nicila ...
|
||||||
|
perhaps it will help tracking down cause.
|
||||||
|
|
||||||
2002-09-19 Richard Frith-Macdonald <rfm@gnu.org>
|
2002-09-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSFormat.m: Where a %p format prints a null pointer,
|
* Source/GSFormat.m: Where a %p format prints a null pointer,
|
||||||
|
|
|
@ -461,11 +461,28 @@ static Class runLoopClass;
|
||||||
NSDebugMLLog(@"GSTcpHandle", @"Connecting on 0x%x in thread 0x%x before %@",
|
NSDebugMLLog(@"GSTcpHandle", @"Connecting on 0x%x in thread 0x%x before %@",
|
||||||
self, GSCurrentThread(), when);
|
self, GSCurrentThread(), when);
|
||||||
if (state != GS_H_UNCON)
|
if (state != GS_H_UNCON)
|
||||||
|
{
|
||||||
|
BOOL result;
|
||||||
|
|
||||||
|
if (state == GS_H_CONNECTED) /* Already connected. */
|
||||||
{
|
{
|
||||||
NSLog(@"attempting connect on connected handle");
|
NSLog(@"attempting connect on connected handle");
|
||||||
DO_UNLOCK(myLock);
|
result = YES;
|
||||||
return YES; /* Already connected. */
|
|
||||||
}
|
}
|
||||||
|
else if (state == GS_H_ACCEPT) /* Impossible. */
|
||||||
|
{
|
||||||
|
NSLog(@"attempting connect with accepting handle");
|
||||||
|
result = NO;
|
||||||
|
}
|
||||||
|
else /* Already connecting. */
|
||||||
|
{
|
||||||
|
NSLog(@"attempting connect while connecting");
|
||||||
|
result = NO;
|
||||||
|
}
|
||||||
|
DO_UNLOCK(myLock);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
if (recvPort == nil || aPort == nil)
|
if (recvPort == nil || aPort == nil)
|
||||||
{
|
{
|
||||||
NSLog(@"attempting connect with port(s) unset");
|
NSLog(@"attempting connect with port(s) unset");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue