update max_fd to new max, never lower it
This commit is contained in:
parent
786705c19d
commit
20f8e9c73c
@ -334,14 +334,17 @@ TALER_MINT_get_select_info (struct TALER_MINT_Context *ctx,
|
|||||||
long *timeout)
|
long *timeout)
|
||||||
{
|
{
|
||||||
long to;
|
long to;
|
||||||
|
int m;
|
||||||
|
|
||||||
|
m = -1;
|
||||||
GNUNET_assert (CURLM_OK ==
|
GNUNET_assert (CURLM_OK ==
|
||||||
curl_multi_fdset (ctx->multi,
|
curl_multi_fdset (ctx->multi,
|
||||||
read_fd_set,
|
read_fd_set,
|
||||||
write_fd_set,
|
write_fd_set,
|
||||||
except_fd_set,
|
except_fd_set,
|
||||||
max_fd));
|
&m));
|
||||||
to = *timeout;
|
to = *timeout;
|
||||||
|
*max_fd = GNUNET_MAX (m, *max_fd);
|
||||||
GNUNET_assert (CURLM_OK ==
|
GNUNET_assert (CURLM_OK ==
|
||||||
curl_multi_timeout (ctx->multi,
|
curl_multi_timeout (ctx->multi,
|
||||||
&to));
|
&to));
|
||||||
|
Loading…
Reference in New Issue
Block a user