mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Enable keepalive for message port connections on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4f370cebb
commit
27b8c6be12
3 changed files with 17 additions and 12 deletions
|
@ -1634,6 +1634,16 @@ static NSLock *cached_proxies_gate = nil;
|
|||
- (void) setRootObject: (id)anObj
|
||||
{
|
||||
setRootObjectForInPort(anObj, _receivePort);
|
||||
#if defined(__MINGW32__)
|
||||
/* On ms-windows, the operating system does not inform us when the remote
|
||||
* client of a message port goes away ... so we need to enable keepalive
|
||||
* to detect that condition.
|
||||
*/
|
||||
if ([_receivePort isKindOfClass: [NSMessagePort class]])
|
||||
{
|
||||
[self _enableKeepalive];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue