mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-30 08:41:24 +00:00
* GSWeb.framework/GSWApplication.m
(GSWApplicationMainReal): Reformat. Use GSCurrentThread instead of objc_thread_id. Remove \n in NSLog type logs. (GSWApplicationMain): Ditto. ([GSWApplication init], [GSWApplication lockRequestHandling], [GSWApplication unlockRequestHandling], [GSWApplication lock], [GSWApplication unlock], [GSWApplication _sessionClass], [GSWApplication run], [GSWApplication addDynCreateClassName:superClassName:], [GSWApplication pageWithName:], [GSWApplication dynamicElementWithName:associations:template:]): Ditto. * GSWeb.framework/GSWComponent.m ([GSWComponent appendToResponse:inContext:], [GSWComponent templateWithHTMLString:declarationString:languages:]): Ditto. * GSWeb.framework/GSWContext.m ([GSWContext dealloc], [GSWContext setValidate:]): Ditto. * GSWeb.framework/GSWDebug.m (GSWLogC_, GSWLogDumpObjectFn): Ditto. * GSWeb.framework/GSWDefaultAdaptor.m ([GSWDefaultAdaptor registerForEvents], [GSWDefaultAdaptor announceNewConnection:], [GSWDefaultAdaptor adaptorThreadExited:], [GSWDefaultAdaptor tryLock]): Ditto. * GSWeb.framework/GSWDefaultAdaptorThread.m ([GSWDefaultAdaptorThread setPool:destroyLast:], [GSWDefaultAdaptorThread run:], [GSWDefaultAdaptorThread threadExited], [GSWDefaultAdaptorThread isExpired], [GSWDefaultAdaptorThread sendRetryLasterResponseToStream:], [GSWDefaultAdaptorThread sendConnectionRefusedResponseToStream:withMessage:]): Ditto. * GSWeb.framework/GSWDeployedBundle.m ([GSWDeployedBundle initWithPath:], [GSWDeployedBundle dealloc], [GSWDeployedBundle lock], [GSWDeployedBundle unlock]): Ditto. * GSWeb.framework/GSWLifebeatThread.m ([GSWLifebeatThread setPool:destroyLast:], [GSWLifebeatThread threadExited]): Ditto. * GSWeb.framework/GSWSession.m ([GSWSession initWithCoder:], [GSWSession _releaseAutoreleasePool]): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c62d15ffe2
commit
8c0a3efa9f
10 changed files with 326 additions and 232 deletions
|
@ -107,10 +107,11 @@ RCS_ID("$Id$")
|
|||
{
|
||||
if (destroy)
|
||||
{
|
||||
GSWLogMemC("dealloc pool\n");
|
||||
GSWLogMemCF("Destroy NSAutoreleasePool: %p. ThreadID=%p",_pool,(void*)objc_thread_id());
|
||||
GSWLogMemC("dealloc pool");
|
||||
GSWLogMemCF("Destroy NSAutoreleasePool: %p. %@",
|
||||
_pool, GSCurrentThread());
|
||||
DESTROY(_pool);
|
||||
GSWLogMemC("end dealloc pool\n");
|
||||
GSWLogMemC("end dealloc pool");
|
||||
};
|
||||
_pool=pool;
|
||||
};
|
||||
|
@ -236,8 +237,8 @@ RCS_ID("$Id$")
|
|||
};
|
||||
};
|
||||
};
|
||||
NSDebugMLog(@"GSWDefaultAdaptorThread: ThreadID=%p run end",
|
||||
(void*)objc_thread_id());
|
||||
NSDebugMLog(@"GSWDefaultAdaptorThread: %@ run end",
|
||||
GSCurrentThread());
|
||||
NSDebugMLLog(@"low",@"application:%@",
|
||||
_application);
|
||||
LOGObjectFnStop();
|
||||
|
@ -272,7 +273,7 @@ RCS_ID("$Id$")
|
|||
[self setPool:nil
|
||||
destroyLast:YES];
|
||||
// LOGObjectFnStop();
|
||||
GSWLogDeepC("threadExited\n");
|
||||
GSWLogDeepC("threadExited");
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -783,7 +784,7 @@ withAdditionalHeaderLines:(NSArray*)addHeaders
|
|||
-(BOOL)isExpired
|
||||
{
|
||||
BOOL isExpired=(fabs([_creationDate timeIntervalSinceNow])>ADAPTOR_THREAD_TIME_OUT);
|
||||
NSDebugDeepMLog(@"EXPIRED %@ %f isExpired=%d\n",//connectOK=%d isExpired=%d\n",
|
||||
NSDebugDeepMLog(@"EXPIRED %@ %f isExpired=%d",//connectOK=%d isExpired=%d",
|
||||
_creationDate,
|
||||
[_creationDate timeIntervalSinceNow],
|
||||
//(int)(((UnixFileHandle*)stream)->connectOK),
|
||||
|
@ -808,7 +809,7 @@ withAdditionalHeaderLines:(NSArray*)addHeaders
|
|||
forRequest:nil
|
||||
forceFinalize:YES];
|
||||
[response setStatus:503];//503=Service Unavailable
|
||||
NSDebugDeepMLog0(@"sendResponse:\n");
|
||||
NSDebugDeepMLog0(@"sendResponse:");
|
||||
[self sendResponse:response
|
||||
toStream:stream
|
||||
withNamingConv:GSWNAMES_INDEX
|
||||
|
@ -832,7 +833,7 @@ withAdditionalHeaderLines:(NSArray*)addHeaders
|
|||
forRequest:nil
|
||||
forceFinalize:YES];
|
||||
[response setStatus:503];//503=Service Unavailable
|
||||
NSDebugDeepMLog0(@"sendResponse:\n");
|
||||
NSDebugDeepMLog0(@"sendResponse:");
|
||||
[self sendResponse:response
|
||||
toStream:stream
|
||||
withNamingConv:GSWNAMES_INDEX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue