p5-RedisDB / RedisDB

Perl extension to access Redis
22 stars 11 forks source link

Subsecond timeout on read/write. #30

Closed itinken closed 7 years ago

itinken commented 7 years ago

Currently if you use a timeout value less than 1, then it appears to work for connect operations. However read operations hang forever. This is because the microsecond part of the struct timeval is left at zero.

This patch fixes that for Linux (and perhaps other OS's other than the BSDs which have separate code paths).

I can supply patches for the other cases too, but have no way of testing them.

trinitum commented 7 years ago

Thank you!