diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-16 16:42:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-16 16:42:59 +0200 |
commit | 391a155194ead22c3cbe5cdd9f1e27d15a71cbb7 (patch) | |
tree | f2b9b7feca72b6c94f2e7f25a80baab90d0f3cb6 | |
parent | fad1ba2cc4072c53d38eb96f24674a0564c5ed7d (diff) | |
download | merchant-391a155194ead22c3cbe5cdd9f1e27d15a71cbb7.tar.gz merchant-391a155194ead22c3cbe5cdd9f1e27d15a71cbb7.tar.bz2 merchant-391a155194ead22c3cbe5cdd9f1e27d15a71cbb7.zip |
timeout argument is timeout_ms in spec
-rw-r--r-- | src/backend/taler-merchant-httpd_get-orders-ID.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c index ba92316c..4807c180 100644 --- a/src/backend/taler-merchant-httpd_get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -969,17 +969,17 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, god->generate_html = TMH_MHD_test_html_desired (connection); { - const char *long_poll_timeout_s; + const char *long_poll_timeout_ms; - long_poll_timeout_s = MHD_lookup_connection_value (connection, - MHD_GET_ARGUMENT_KIND, - "timeout"); - if ((NULL != long_poll_timeout_s) && + long_poll_timeout_ms = MHD_lookup_connection_value (connection, + MHD_GET_ARGUMENT_KIND, + "timeout_ms"); + if ((NULL != long_poll_timeout_ms) && ! god->generate_html) { unsigned int timeout; - if (1 != sscanf (long_poll_timeout_s, + if (1 != sscanf (long_poll_timeout_ms, "%u", &timeout)) { @@ -991,7 +991,7 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, } god->sc.long_poll_timeout = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_relative_multiply ( - GNUNET_TIME_UNIT_SECONDS, + GNUNET_TIME_UNIT_MILLISECONDS, timeout)); } else |