mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
* GSWeb.framework/GSWApplication.m ([GSWApplication -dealloc]): reset
GSWApp. * GSWeb.framework/GSWStatisticsStore.m ([GSWStatisticsStore -init]): retain startDate. * GSWAdaptors/common/GSWUtil.c: use vsnprintf to prevent buffer overflow. * GSWAdaptors/common/GSWHTTPRequest.c (GSWHTTPRequest_SendRequest): terminate buffer. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9220 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
49331081a5
commit
6e70b408e8
5 changed files with 33 additions and 14 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2001-02-23 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* GSWeb.framework/GSWApplication.m ([GSWApplication -dealloc]): reset
|
||||
GSWApp.
|
||||
* GSWeb.framework/GSWStatisticsStore.m ([GSWStatisticsStore -init]):
|
||||
retain startDate.
|
||||
* GSWAdaptors/common/GSWUtil.c: use vsnprintf to prevent buffer
|
||||
overflow.
|
||||
* GSWAdaptors/common/GSWHTTPRequest.c (GSWHTTPRequest_SendRequest):
|
||||
terminate buffer.
|
||||
|
||||
2001-01-29 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* GSWeb.framework/GSWApplication.m (GSWApplicationMain): use NSLog to
|
||||
|
|
|
@ -267,6 +267,8 @@ BOOL GSWHTTPRequest_SendRequest(GSWHTTPRequest* p_pHTTPRequest,AppConnectHandle
|
|||
pszTmp+=iContentLength;
|
||||
};
|
||||
|
||||
*pszTmp = '\0';
|
||||
|
||||
GSWLog(GSW_INFO,p_pLogServerData,
|
||||
"Sending AppRequest Content: %s\n(%d Bytes)",
|
||||
p_pHTTPRequest->pszRequest,
|
||||
|
|
|
@ -76,10 +76,12 @@ void VGSWLogSizedIntern(char* file,
|
|||
{
|
||||
FILE* pLog = NULL;
|
||||
char szBuffer[p_iBufferSize+512];
|
||||
szBuffer[0]=0;
|
||||
errno=0;//Because Apache use it in ap_log_error to display the message.
|
||||
vsprintf(szBuffer,p_pszFormat,ap);
|
||||
|
||||
|
||||
szBuffer[0] = 0;
|
||||
errno = 0;//Because Apache use it in ap_log_error to display the message.
|
||||
vsnprintf(szBuffer, p_iBufferSize+511, p_pszFormat, ap);
|
||||
szBuffer[p_iBufferSize+511] = 0;
|
||||
|
||||
#if defined(Netscape)
|
||||
log_error(0,"GSWeb",NULL,NULL,szBuffer);
|
||||
#endif
|
||||
|
|
|
@ -461,6 +461,10 @@ int GSWApplicationMain(NSString* _applicationClassName,
|
|||
DESTROY(runLoopDate);
|
||||
DESTROY(initialTimer);
|
||||
DESTROY(activeSessionsCountLock);
|
||||
|
||||
if (GSWApp == self)
|
||||
GSWApp = nil;
|
||||
|
||||
GSWLogC("Dealloc GSWApplication Super");
|
||||
[super dealloc];
|
||||
GSWLogC("End Dealloc GSWApplication");
|
||||
|
|
|
@ -35,13 +35,13 @@ static char rcsId[] = "$Id$";
|
|||
{
|
||||
//OK
|
||||
if ((self=[super init]))
|
||||
{
|
||||
transactionMovingAverageSampleCount=100;
|
||||
sessionMovingAverageSampleCount=10;
|
||||
startDate=[NSDate date];
|
||||
ASSIGN(initializationMemory,[self _memoryUsage]);
|
||||
selfLock=[NSRecursiveLock new];
|
||||
};
|
||||
{
|
||||
transactionMovingAverageSampleCount = 100;
|
||||
sessionMovingAverageSampleCount = 10;
|
||||
ASSIGN(startDate, [NSDate date]);
|
||||
ASSIGN(initializationMemory, [self _memoryUsage]);
|
||||
selfLock = [NSRecursiveLock new];
|
||||
};
|
||||
return self;
|
||||
};
|
||||
|
||||
|
@ -441,9 +441,9 @@ static char rcsId[] = "$Id$";
|
|||
LOGObjectFnNotImplemented(); //TODOFN
|
||||
transactionsCount++;
|
||||
/*
|
||||
lastWillHandleRequestTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
totalIdleTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
movingIdleTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
lastWillHandleRequestTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
totalIdleTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
movingIdleTimeInterval=double DOUBLE:53.516954 [RC=4294967295]
|
||||
*/
|
||||
movingAverageTransactionsCount++;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue