Pazpar2 is using ZOOM_connection_exec_task instead of ZOOM_event_nonblock
to avoid that we loose any events. ZOOM_connection_exec_task will just
ensure that any outstanding tasks are initiated - such as connect,
earch, present etc.
void connection_continue(struct connection *co)
{
- ZOOM_connection link = co->link;
-
- ZOOM_event_nonblock(1, &link);
+ int r = ZOOM_connection_exec_task(co->link);
+ if (!r)
+ yaz_log(YLOG_WARN, "No task was executed for connection");
}
static void connection_handler(IOCHAN iochan, int event)