more detailed debug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11838 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-12-19 23:04:28 +00:00
parent 1e8939a868
commit d8e0fb1a5f
2 changed files with 17 additions and 6 deletions

View file

@ -308,7 +308,10 @@ static void debugWrite(NSData *data)
* Don't start a load if one is in progress.
*/
if (connectionState != idle)
return;
{
NSLog(@"Attempt to load an http handle which is not idle ... ignored");
return;
}
[dat setLength: 0];
RELEASE(document);
@ -316,8 +319,11 @@ static void debugWrite(NSData *data)
parser = [GSMimeParser new];
document = RETAIN([parser document]);
[self beginLoadInBackground];
[sock closeFile];
DESTROY(sock);
if (sock != nil)
{
[sock closeFile];
DESTROY(sock);
}
contentLength = 0;
if ([[request objectForKey: GSHTTPPropertyProxyHostKey] length] == 0)
{