mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
d650d89cb9
commit
3bf7ab2863
2 changed files with 11 additions and 8 deletions
|
@ -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>
|
2005-02-27 08:45 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* NSCharacterSets/dataToheader.c: new file to convert data files to
|
* NSCharacterSets/dataToheader.c: new file to convert data files to
|
||||||
|
|
|
@ -904,8 +904,8 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
{
|
{
|
||||||
_multipleThreads = NO;
|
_multipleThreads = NO;
|
||||||
_independentQueueing = NO;
|
_independentQueueing = NO;
|
||||||
_replyTimeout = 300.0; // Five minute default.
|
_replyTimeout = 1.0E12;
|
||||||
_requestTimeout = 300.0; // Five minute default.
|
_requestTimeout = 1.0E12;
|
||||||
/*
|
/*
|
||||||
* Set up request modes array and make sure the receiving port
|
* Set up request modes array and make sure the receiving port
|
||||||
* is added to the run loop to get data.
|
* 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
|
* a request sent on the NSConnection. This value is inherited
|
||||||
* from the parent connection or may be set using the -setReplyTimeout:
|
* from the parent connection or may be set using the -setReplyTimeout:
|
||||||
* method.<br />
|
* method.<br />
|
||||||
* Under MacOS-X the default value is documented as the maximum delay
|
* The default value is the maximum delay (effectively infinite).
|
||||||
* (effectively infinite), but under GNUstep it is set to a more
|
|
||||||
* useful 300 seconds.
|
|
||||||
*/
|
*/
|
||||||
- (NSTimeInterval) replyTimeout
|
- (NSTimeInterval) replyTimeout
|
||||||
{
|
{
|
||||||
|
@ -1350,9 +1348,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
* Returns the timeout interval used when trying to send a request
|
* Returns the timeout interval used when trying to send a request
|
||||||
* on the NSConnection. This value is inherited from the parent
|
* on the NSConnection. This value is inherited from the parent
|
||||||
* connection or may be set using the -setRequestTimeout: method.<br />
|
* connection or may be set using the -setRequestTimeout: method.<br />
|
||||||
* Under MacOS-X the default value is documented as the maximum delay
|
* The default value is the maximum delay (effectively infinite).
|
||||||
* (effectively infinite), but under GNUstep it is set to a more
|
|
||||||
* useful 300 seconds.
|
|
||||||
*/
|
*/
|
||||||
- (NSTimeInterval) requestTimeout
|
- (NSTimeInterval) requestTimeout
|
||||||
{
|
{
|
||||||
|
@ -1456,6 +1452,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
*/
|
*/
|
||||||
- (void) setReplyTimeout: (NSTimeInterval)to
|
- (void) setReplyTimeout: (NSTimeInterval)to
|
||||||
{
|
{
|
||||||
|
if (to <= 0.0 || to > 1.0E12) to = 1.0E12;
|
||||||
_replyTimeout = to;
|
_replyTimeout = to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1491,6 +1488,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
*/
|
*/
|
||||||
- (void) setRequestTimeout: (NSTimeInterval)to
|
- (void) setRequestTimeout: (NSTimeInterval)to
|
||||||
{
|
{
|
||||||
|
if (to <= 0.0 || to > 1.0E12) to = 1.0E12;
|
||||||
_requestTimeout = to;
|
_requestTimeout = to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue