diff options
-rw-r--r-- | library.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -915,7 +915,7 @@ PHPAPI int redis_sock_connect(RedisSock *redis_sock TSRMLS_DC) php_stream_auto_cleanup(redis_sock->stream); - if(tv.tv_sec != 0) { + if(tv.tv_sec != 0 || tv.tv_usec != 0) { php_stream_set_option(redis_sock->stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); } |