X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fconnection.c;h=260196c8396817fcab80253f0fb5442ba0338c8d;hb=3f79fd8c6a86f2376e9f3a2485f81ebd5c37bb82;hp=2d5d4c46e3fdbe58d3851ea69b5c4f9a09c4d56b;hpb=31b2dd66968bf57d430d8c17d69171315b7ca1ad;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 2d5d4c4..260196c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -236,9 +236,9 @@ static void non_block_events(struct connection *co) 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) @@ -251,6 +251,7 @@ static void connection_handler(IOCHAN iochan, int event) /* no client associated with it.. We are probably getting a closed connection from the target.. Or, perhaps, an unexpected package.. We will just close the connection */ + yaz_log(YLOG_LOG, "timeout connection %p event=%d", co, event); connection_destroy(co); return; }