mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-22 03:01:27 +00:00
* 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:
parent
7c84e4573f
commit
7b1d4173d1
2 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue