}
if (event & EVENT_EXCEPT)
{
- yaz_log(YLOG_WARN, "ir_session (exception)");
+ if (assoc->state != ASSOC_DEAD)
+ yaz_log(YLOG_WARN, "ir_session (exception)");
cs_close(conn);
destroy_association(assoc);
iochan_destroy(h);
Z_ReferenceId *referenceId,
Odr_oid *oid, int *errcode)
{
- int recno, dumped_records = 0;
+ int recno;
+ Odr_int dumped_records = 0;
int toget = odr_int_to_int(*num);
Z_Records *records =
(Z_Records *) odr_malloc(a->encode, sizeof(*records));
else
this_length = odr_total(a->encode) - total_length - dumped_records;
yaz_log(log_requestdetail, " fetched record, len=" ODR_INT_PRINTF
- " total=" ODR_INT_PRINTF " dumped=%d",
+ " total=" ODR_INT_PRINTF " dumped=" ODR_INT_PRINTF,
this_length, total_length, dumped_records);
if (a->preferredMessageSize > 0 &&
this_length + total_length > a->preferredMessageSize)