* GSWeb.framework/GSWDefaultAdaptorThread.m

(readRequestReturnedRequestLine:returnedHeaders:returnedData:):
	Remove superflous sleep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23762 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2006-10-04 21:49:02 +00:00
parent 7c84e4573f
commit 7b1d4173d1
2 changed files with 4 additions and 7 deletions

View file

@ -1,5 +1,9 @@
2006-10-04 David Ayers <ayers@fsfe.org>
* GSWeb.framework/GSWDefaultAdaptorThread.m
(readRequestReturnedRequestLine:returnedHeaders:returnedData:):
Remove superfluous sleep.
* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd
* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html
* Testing/DynamicElements/FileUpload1Page.h

View file

@ -393,7 +393,6 @@ static NSData* lineFeedData=nil;
NSMutableData* pendingData=nil;
NSDate* maxDate=[NSDate dateWithTimeIntervalSinceNow:360]; //360s
NSData* dataBlock=nil;
double sleepTime=0.250; //250ms
int readenBytesNb=0;
int headersBytesNb=0;
int dataBytesNb=0;
@ -542,12 +541,6 @@ static NSData* lineFeedData=nil;
to insure the compiler finds the correct signature. */
NSDate *now = [NSDate date];
isElapsed =[now compare: maxDate]==NSOrderedDescending;
if (!isElapsed)
{
NSTimeIntervalSleep(sleepTime);//Is this the good method ? //TODOV
now = [NSDate date];
isElapsed=[now compare:maxDate]==NSOrderedDescending;
};
};
} while (!isAllDataReaden && !isElapsed);
ASSIGN(_remoteAddress,remoteAddr);