Fix pre_init to prevent spawn if it is already queued.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Mar 2004 17:01:52 +0000 (17:01 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Mar 2004 17:01:52 +0000 (17:01 +0000)
Version 2.0.15 update.

ChangeLog
configure.in
src/yaz-proxy.cpp

index 1da5e86..e1463c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+--- 0.7.11 2004/03/01 Internal release.
+
+Fix pre_init to prevent spawn if it is already queued.
+
 --- 0.7.10 2004/02/27 Internal release.
 
 Make workaround for FILE handles for libxml2 on Solaris where
index cc795f4..c010aa2 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE("yaz++",0.7.10)
+AM_INIT_AUTOMAKE("yaz++",0.7.11)
 
 AC_PROG_CC
 AC_PROG_CPP
index 5528cb1..1caa1ea 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2004, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-proxy.cpp,v 1.105 2004-02-27 00:42:58 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.106 2004-03-01 17:01:52 adam Exp $
  */
 
 #include <unistd.h>
@@ -2325,7 +2325,7 @@ void Yaz_Proxy::pre_init()
                        "sparew=%d preinit=%d",m_session_str,
                        name, zurl_in_use[j], in_use, other,
                        spare, spare_waiting, pre_init);
-               if (spare < pre_init)
+               if (spare + spare_waiting < pre_init)
                {
                    c = new Yaz_ProxyClient(m_PDU_Observable->clone(), this);
                    c->m_next = m_clientPool;