projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Towards 0.9.
[yazpp-moved-to-github.git]
/
zlint
/
zlint.cpp
diff --git
a/zlint/zlint.cpp
b/zlint/zlint.cpp
index
028e6d6
..
3987a21
100644
(file)
--- a/
zlint/zlint.cpp
+++ b/
zlint/zlint.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: zlint.cpp,v 1.5 2004-03-25 23:14:07 adam Exp $
+ * $Id: zlint.cpp,v 1.8 2004-12-13 20:50:54 adam Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-57,6
+57,7
@@
void Zlint::set_host(const char *cp)
xfree(m_host);
m_host = xstrdup(cp);
client(m_host);
xfree(m_host);
m_host = xstrdup(cp);
client(m_host);
+ timeout(30);
const char *basep;
cs_get_host_args(m_host, &basep);
const char *basep;
cs_get_host_args(m_host, &basep);
@@
-74,6
+75,7
@@
void Zlint::timeoutNotify()
{
close();
client(m_host);
{
close();
client(m_host);
+ timeout(30);
return;
}
}
return;
}
}
@@
-88,6
+90,7
@@
void Zlint::failNotify()
{
close();
client(m_host);
{
close();
client(m_host);
+ timeout(30);
return;
}
}
return;
}
}
@@
-115,6
+118,7
@@
void Zlint::recv_GDU(Z_GDU *gdu, int len)
{
close();
client(m_host);
{
close();
client(m_host);
+ timeout(30);
return;
}
}
return;
}
}
@@
-128,6
+132,7
@@
void Zlint::close_goto_next()
m_cur_test = m_cur_test->m_next;
if (m_cur_test)
client(m_host);
m_cur_test = m_cur_test->m_next;
if (m_cur_test)
client(m_host);
+ timeout(30);
}
IYaz_PDU_Observer *Zlint::sessionNotify(
}
IYaz_PDU_Observer *Zlint::sessionNotify(
@@
-156,7
+161,7
@@
int Zlint::initResponseGetVersion(Z_InitResponse *init)
{
no = i+1;
if (off)
{
no = i+1;
if (off)
- yaz_log(LOG_WARN, "%sbad formatted version");
+ yaz_log(YLOG_WARN, "%sbad formatted version");
}
else
off = 1;
}
else
off = 1;