diff options
| author | Adam Dickmeiss <dickmeiss@php.net> | 2002-08-19 21:15:59 +0000 |
|---|---|---|
| committer | Adam Dickmeiss <dickmeiss@php.net> | 2002-08-19 21:15:59 +0000 |
| commit | e1a89832874cab8f603340e5716a3821cbc42b26 (patch) | |
| tree | 5d1a9abb5ac8adc33a42fe91376df507549c99f0 /ext/yaz/php_yaz.c | |
| parent | 91f585744f64ec4174f8c52999c42c4e799ee446 (diff) | |
| download | php-git-e1a89832874cab8f603340e5716a3821cbc42b26.tar.gz | |
Make options piggyback and timeout work with ZOOM
Diffstat (limited to 'ext/yaz/php_yaz.c')
| -rw-r--r-- | ext/yaz/php_yaz.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
