/* This file is part of Metaproxy.
- Copyright (C) 2005-2009 Index Data
+ Copyright (C) 2005-2010 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
#include <time.h>
#include <yaz/log.h>
#include <yazpp/timestat.h>
-#include "package.hpp"
-#include "util.hpp"
+#include <metaproxy/package.hpp>
+#include <metaproxy/util.hpp>
+#ifdef WIN32
+#include <windows.h>
+#endif
namespace mp = metaproxy_1;
namespace yf = mp::filter;
}
}
if (package.session().is_closed())
+ {
m_sessions.erase(package.session());
+ delete ses;
+ }
}
if (reduce)
{
yaz_log(YLOG_LOG, "sleeping %d seconds", reduce);
+#ifdef WIN32
+ Sleep(reduce * 1000);
+#else
sleep(reduce);
+#endif
}
}