{"id":6659,"date":"2014-04-20T21:48:57","date_gmt":"2014-04-20T21:48:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/php-redis-timeout-read-error-on-connection-collection-of-common-programming-errors\/"},"modified":"2014-04-20T21:48:57","modified_gmt":"2014-04-20T21:48:57","slug":"php-redis-timeout-read-error-on-connection-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/php-redis-timeout-read-error-on-connection-collection-of-common-programming-errors\/","title":{"rendered":"PHP Redis timeout, read error on connection?-Collection of common programming errors"},"content":{"rendered":"<p>The current solution I know of is to disable persistent connections for phpredis, as they have been reported as buggy since October 2011. If you&#8217;re using php-fpm or other threaded models, the library specifically disables persistent connections.<\/p>\n<p>Reducing the frequency of this error might be possible by adjusting the php.ini <code>default_socket_timeout<\/code> value.<\/p>\n<p>Additionally, read timeout configurations in phpredis are not universally supported. The feature (look for <code>OPT_READ_TIMEOUT<\/code>) was introduced in tag 2.2.3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The current solution I know of is to disable persistent connections for phpredis, as they have been reported as buggy since October 2011. If you&#8217;re using php-fpm or other threaded models, the library specifically disables persistent connections. Reducing the frequency of this error might be possible by adjusting the php.ini default_socket_timeout value. Additionally, read timeout [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6659","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6659"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6659\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}