MacOS-X compatibility update

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20806 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-02-27 12:25:10 +00:00
parent 8c80371455
commit ffdb850a1a
2 changed files with 11 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2005-02-27 13:20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m:
Set default timeouts to maximum timeouts for MacOS-X compatibility.
2005-02-27 08:45 Richard Frith-Macdonald <rfm@gnu.org>
* NSCharacterSets/dataToheader.c: new file to convert data files to

View file

@ -904,8 +904,8 @@ static NSLock *cached_proxies_gate = nil;
{
_multipleThreads = NO;
_independentQueueing = NO;
_replyTimeout = 300.0; // Five minute default.
_requestTimeout = 300.0; // Five minute default.
_replyTimeout = 1.0E12;
_requestTimeout = 1.0E12;
/*
* Set up request modes array and make sure the receiving port
* is added to the run loop to get data.
@ -1323,9 +1323,7 @@ static NSLock *cached_proxies_gate = nil;
* a request sent on the NSConnection. This value is inherited
* from the parent connection or may be set using the -setReplyTimeout:
* method.<br />
* Under MacOS-X the default value is documented as the maximum delay
* (effectively infinite), but under GNUstep it is set to a more
* useful 300 seconds.
* The default value is the maximum delay (effectively infinite).
*/
- (NSTimeInterval) replyTimeout
{
@ -1350,9 +1348,7 @@ static NSLock *cached_proxies_gate = nil;
* Returns the timeout interval used when trying to send a request
* on the NSConnection. This value is inherited from the parent
* connection or may be set using the -setRequestTimeout: method.<br />
* Under MacOS-X the default value is documented as the maximum delay
* (effectively infinite), but under GNUstep it is set to a more
* useful 300 seconds.
* The default value is the maximum delay (effectively infinite).
*/
- (NSTimeInterval) requestTimeout
{
@ -1456,6 +1452,7 @@ static NSLock *cached_proxies_gate = nil;
*/
- (void) setReplyTimeout: (NSTimeInterval)to
{
if (to <= 0.0 || to > 1.0E12) to = 1.0E12;
_replyTimeout = to;
}
@ -1491,6 +1488,7 @@ static NSLock *cached_proxies_gate = nil;
*/
- (void) setRequestTimeout: (NSTimeInterval)to
{
if (to <= 0.0 || to > 1.0E12) to = 1.0E12;
_requestTimeout = to;
}