This will help debugging as we can disable the timeout on demand.
#ifdef EVAS_CSERVE2
+#define TIMEOUT 1000
#define USE_SHARED_INDEX 1
#define SHARED_INDEX_ADD_TO_HASH 1
#define HKEY_LOAD_OPTS_STR_LEN 215
{
rrid = _server_dispatch(&failed);
if (rrid == rid) break;
+#if TIMEOUT
else if (failed)
{
int sel;
//DBG("Waiting for request %d...", rid);
FD_ZERO(&rfds);
FD_SET(socketfd, &rfds);
- tv.tv_sec = 1;
- tv.tv_usec = 0;
+ tv.tv_sec = TIMEOUT / 1000;
+ tv.tv_usec = TIMEOUT * 1000;
sel = select(socketfd + 1, &rfds, NULL, NULL, &tv);
if (sel == -1)
{
return EINA_FALSE;
}
}
+#endif
}
return EINA_TRUE;
}