From: Adam Dickmeiss Date: Mon, 19 Aug 2002 21:15:59 +0000 (+0000) Subject: Make options piggyback and timeout work with ZOOM X-Git-Tag: RELEASE_0_91~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1a89832874cab8f603340e5716a3821cbc42b26;p=php Make options piggyback and timeout work with ZOOM --- diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 4c8c492087..78f6f4e8a1 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -166,6 +166,7 @@ static Yaz_Association yaz_association_mk () p->zoom_scan = 0; p->zoom_package = 0; ZOOM_connection_option_set(p->zoom_conn, "implementationName", "PHP"); + ZOOM_connection_option_set(p->zoom_conn, "async", "1"); #else p->host_port = 0; p->num_databaseNames = 0; @@ -1282,6 +1283,7 @@ PHP_FUNCTION(yaz_connect) option_set (as, "otherInfo1", otherInfo[1]); option_set (as, "otherInfo2", otherInfo[2]); option_set (as, "proxy", proxy_str); + option_set (as, "piggyback", piggyback ? "1" : "0"); ZOOM_connection_connect (as->zoom_conn, zurl_str, 0); break; } @@ -1336,6 +1338,7 @@ PHP_FUNCTION(yaz_connect) option_set (as, "otherInfo1", otherInfo[1]); option_set (as, "otherInfo2", otherInfo[2]); option_set (as, "proxy", proxy_str); + option_set (as, "piggyback", piggyback ? "1" : "0"); ZOOM_connection_connect (as->zoom_conn, zurl_str, 0); #else @@ -1564,7 +1567,13 @@ PHP_FUNCTION(yaz_wait) #if USE_ZOOM Yaz_Association p = shared_associations[i]; if (p && p->order == YAZSG(assoc_seq)) + { + char str[20]; + + sprintf (str, "%d", timeout); + ZOOM_connection_option_set (p->zoom_conn, "timeout", str); conn_ar[no++] = p->zoom_conn; + } #else Yaz_Association p = shared_associations[i]; if (!p || p->order != YAZSG(assoc_seq) || !p->action