[Redis] Redis client: Timeouts !

Celogeek San me at celogeek.com
Fri Dec 27 07:40:25 GMT 2013

Hi. What happen in case of read timeout?
Did you close the connexion?

If I read a data with a very long time to response.
So I have a read time out.
And then I do another command.
It is possible if the socket had not been flush to receive the precedent
Le 26 d=E9c. 2013 23:28, "Damien Krotkine" <damien at krotkine.com> a =E9crit :

> Hi,
> I've just pushed new code in the git master branch. It contains timeouts
> related features. Now you can creates a Redis client with connection,
> read and write timeouts:
> my $redis =3D Redis->new(
>     cnx_timeout =3D> 60,      # connection timeout (in seconds)
>     read_timeout =3D> 0,5,    # read timeout (in seconds)
>     write_timeout =3D> 1.2,    # write timeout (in seconds)
> );
> I haven't yet released it on CPAN, I'd like to do a developer release
> first (but I'm not sure how to do that with dzil). Anyway please feel
> free to test it and let me know of any issues. The code uses 2
> strategies, on mac and linux it uses setsockopt to set read / write
> timeouts, on other OS it uses 'select'. I plan to extend the setsockopt
> strategies to more OS.
> dams.
> _______________________________________________
> Redis mailing list
> Redis at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/redis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/redis/attachments/20131227/9bcb3ef9=

More information about the Redis mailing list