1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00

GH-341 Set timeout for the IPC to 2sec.

This commit is contained in:
Tae Won Ha 2016-11-20 12:05:14 +01:00
parent 99d2c8c5f9
commit cf62d4b25f
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
//#define DEBUG_NEOVIM_SERVER_STANDALONE
static const double qTimeout = 10.0;
static const double qTimeout = 2;
#define data_to_array(type) \
static type *data_to_ ## type ## _array(NSData *data, NSUInteger count) { \
@ -148,7 +148,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
#ifdef DEBUG_NEOVIM_SERVER_STANDALONE
return;
#endif
if (_remoteServerPort == NULL) {
WLOG("Remote server is null: The msg (%lu:%s) could not be sent.", (unsigned long) msgid, data.cdesc);
return;

View File

@ -11,7 +11,7 @@
#import "NeoVimWindow.h"
static const double qTimeout = 10;
static const double qTimeout = 2;
#define data_to_array(type) \
static type *data_to_ ## type ## _array(NSData *data, NSUInteger count) { \
@ -232,7 +232,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
log4Warn("The response for the msg %lu was nil.", NeoVimAgentMsgIdGetDirtyDocs);
return YES;
}
bool *values = data_to_bool_array(response, 1);
return values[0];
}