From eb15a0d2234ee4020a738cf7730091b3475ff793 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 6 Sep 2004 07:50:51 +0000 Subject: [PATCH] Added a few timeouts --- zlint/test-search-01.cpp | 3 ++- zlint/zlint.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/zlint/test-search-01.cpp b/zlint/test-search-01.cpp index a292f3a..12b1bb3 100644 --- a/zlint/test-search-01.cpp +++ b/zlint/test-search-01.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-search-01.cpp,v 1.1 2004-03-25 23:14:07 adam Exp $ + * $Id: test-search-01.cpp,v 1.2 2004-09-06 07:50:51 adam Exp $ */ #include @@ -161,6 +161,7 @@ Zlint_code Zlint_test_search_01::sendTest(Zlint *z) } else { + printf ("finished...\n"); return TEST_FINISHED; } return TEST_CONTINUE; diff --git a/zlint/zlint.cpp b/zlint/zlint.cpp index 028e6d6..6d68af2 100644 --- a/zlint/zlint.cpp +++ b/zlint/zlint.cpp @@ -2,7 +2,7 @@ * 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.6 2004-09-06 07:50:51 adam Exp $ */ #include @@ -57,6 +57,7 @@ void Zlint::set_host(const char *cp) xfree(m_host); m_host = xstrdup(cp); client(m_host); + timeout(30); const char *basep; cs_get_host_args(m_host, &basep); @@ -74,6 +75,7 @@ void Zlint::timeoutNotify() { close(); client(m_host); + timeout(30); return; } } @@ -88,6 +90,7 @@ void Zlint::failNotify() { close(); client(m_host); + timeout(30); return; } } @@ -115,6 +118,7 @@ void Zlint::recv_GDU(Z_GDU *gdu, int len) { close(); client(m_host); + timeout(30); 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); + timeout(30); } IYaz_PDU_Observer *Zlint::sessionNotify( -- 1.7.10.4