* Copyright (c) 1998-2001, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-socket-manager.cpp,v 1.17 2001-11-04 22:36:21 adam Exp $
+ * $Id: yaz-socket-manager.cpp,v 1.19 2002-10-09 12:50:26 adam Exp $
*/
#include <assert.h>
#ifdef WIN32
#include <string.h>
#include <yaz/log.h>
-#include <yaz++/yaz-socket-manager.h>
+#include <yaz++/socket-manager.h>
Yaz_SocketManager::YazSocketEntry **Yaz_SocketManager::lookupObserver(
IYazSocketObserver *observer)
timeout_this -= now - p->last_activity;
else
p->last_activity = now;
- if (timeout_this < 1)
+ if (timeout_this < 1 || timeout_this > 2147483646)
timeout_this = 1;
if (!timeout || timeout_this < timeout)
timeout = timeout_this;
no, timeout);
while ((res = select(max + 1, &in, &out, &except, timeout ? &to : 0)) < 0)
if (errno != EINTR)
+ {
+ yaz_log (LOG_LOG|LOG_WARN, "select");
return -1;
+ }
now = time(0);
for (p = m_observers; p; p = p->next)
{