* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-pdu-assoc.cpp,v $
- * Revision 1.9 1999-12-06 13:52:45 adam
+ * Revision 1.10 2000-08-10 08:42:42 adam
+ * Fixes for {set,get}_APDU_log.
+ *
+ * Revision 1.9 1999/12/06 13:52:45 adam
* Modified for new location of YAZ header files. Experimental threaded
* operation.
*
4. start thread
*/
int fd = cs_fileno(new_line);
- cs_fileno(new_line) = -1;
- cs_close (new_line);
+ cs_fileno(new_line) = -1;
+ cs_close (new_line); /* potential problem ... */
#if 1
childNotify(fd);
#else
/*
- * Copyright (c) 1998-1999, Index Data.
+ * Copyright (c) 1998-2000, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-proxy.cpp,v $
- * Revision 1.13 2000-08-07 14:19:59 adam
+ * Revision 1.14 2000-08-10 08:42:42 adam
+ * Fixes for {set,get}_APDU_log.
+ *
+ * Revision 1.13 2000/08/07 14:19:59 adam
* Fixed serious bug regarding timeouts. Improved logging for proxy.
*
* Revision 1.12 2000/07/04 13:48:49 adam
m_keepalive = 1;
m_proxyTarget = 0;
m_max_clients = 50;
- m_APDU_fname = 0;
m_seed = time(0);
}
m_client->m_sr_transform = 1;
return new_apdu;
}
- else if (m_client->m_last_resultCount >= *sr->largeSetLowerBound ||
+ else if (m_client->m_last_resultCount > *sr->largeSetLowerBound ||
m_client->m_last_resultCount == 0)
{
// large set
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-z-assoc.cpp,v $
- * Revision 1.8 2000-08-07 14:19:59 adam
+ * Revision 1.9 2000-08-10 08:42:42 adam
+ * Fixes for {set,get}_APDU_log.
+ *
+ * Revision 1.8 2000/08/07 14:19:59 adam
* Fixed serious bug regarding timeouts. Improved logging for proxy.
*
* Revision 1.7 2000/05/10 11:36:58 ian
void Yaz_Z_Assoc::set_APDU_log(const char *fname)
{
if (m_APDU_file && m_APDU_file != stderr)
+ {
fclose (m_APDU_file);
- m_APDU_file = 0;
+ m_APDU_file = 0;
+ }
delete [] m_APDU_fname;
m_APDU_fname = 0;
{
m_APDU_fname = new char[strlen(fname)+1];
strcpy (m_APDU_fname, fname);
- }
- if (fname)
- {
if (*fname)
m_APDU_file = fopen (fname, "a");
else
{
m_PDU_Observable->destroy();
delete m_PDU_Observable;
- odr_destroy (m_odr_print);
+ odr_destroy (m_odr_print); // note: also runs fclose on m_APDU_file ..
odr_destroy (m_odr_out);
odr_destroy (m_odr_in);
delete [] m_APDU_fname;
- if (m_APDU_file && m_APDU_file != stderr)
- fclose (m_APDU_file);
delete [] m_hostname;
}