Update Client.pm

Using a more clear way to test if some io timeout happens, using Errno qw(:POSIX)