We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why the maximum value is set to 1000000?
The text was updated successfully, but these errors were encountered:
hiredis
Sorry, something went wrong.
1second = 1000000 microseconds
struct timeval { __time_t tv_sec; /* Seconds. */ __suseconds_t tv_usec; /* Microseconds. */ };
If you want to set larger timeout value, you can use first field(tv_sec). eg. timeout = {2, 1000}
I found an explanation, as follows. deps/hiredis/examples/example.c
struct timeval timeout = { 1, 500000 }; // 1.5 seconds c = redisConnectWithTimeout(hostname, port, timeout);
No branches or pull requests
when set timeout = {"1","5000000"} The system is mistaken for "Invalid timeout specified"
if (timeout->tv_usec > 1000000 || timeout->tv_sec > __MAX_MSEC) {
*result = msec;
return REDIS_ERR;
}
Why the maximum value is set to 1000000?
The text was updated successfully, but these errors were encountered: