aboutsummaryrefslogtreecommitdiff
path: root/src/mint-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-01-01 20:44:03 +0100
committerChristian Grothoff <christian@grothoff.org>2016-01-01 20:44:03 +0100
commit20f8e9c73c774872b6bb6363c098b6c43cce5a59 (patch)
tree77a07b45740b19f35cac79e7a69b13349d29b83d /src/mint-lib
parent786705c19d01f2d27b0b6dacd5718ab53d261325 (diff)
update max_fd to new max, never lower it
Diffstat (limited to 'src/mint-lib')
-rw-r--r--src/mint-lib/mint_api_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mint-lib/mint_api_context.c b/src/mint-lib/mint_api_context.c
index 9ab136081..e60e01b07 100644
--- a/src/mint-lib/mint_api_context.c
+++ b/src/mint-lib/mint_api_context.c
@@ -334,14 +334,17 @@ TALER_MINT_get_select_info (struct TALER_MINT_Context *ctx,
long *timeout)
{
long to;
+ int m;
+ m = -1;
GNUNET_assert (CURLM_OK ==
curl_multi_fdset (ctx->multi,
read_fd_set,
write_fd_set,
except_fd_set,
- max_fd));
+ &m));
to = *timeout;
+ *max_fd = GNUNET_MAX (m, *max_fd);
GNUNET_assert (CURLM_OK ==
curl_multi_timeout (ctx->multi,
&to));