MSOpenTech/redis — pull request #12 by mjasperse (2012-07-26 03:58:35+00:00)
Title: Fixed bug in Win32 redisContextSetTimeout

setsockopt for SO_RCVTIMEO/SO_SNDTIMEO takes a DWORD argument of timeout in millisec, not a timeval struct.
see http://msdn.microsoft.com/en-us/library/windows/desktop/ms740476(v=vs.85).aspx

minimal example: using timeval tv = {0,1000} will hang forever (no timeout)