use timeval. keep timeout in milliseconds for backwards compatibility.
Revert types for redis.c plugin.