{"action":"created","issue":{"url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/94","labels_url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/94/comments","events_url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/94/events","html_url":"https://github.com/immobiliare/ApnsPHP/issues/94","id":81374755,"number":94,"title":"fread hangs when read error message from server","user":{"login":"fengchang","id":1174777,"avatar_url":"https://avatars.githubusercontent.com/u/1174777?v=3","gravatar_id":"","url":"https://api.github.com/users/fengchang","html_url":"https://github.com/fengchang","followers_url":"https://api.github.com/users/fengchang/followers","following_url":"https://api.github.com/users/fengchang/following{/other_user}","gists_url":"https://api.github.com/users/fengchang/gists{/gist_id}","starred_url":"https://api.github.com/users/fengchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengchang/subscriptions","organizations_url":"https://api.github.com/users/fengchang/orgs","repos_url":"https://api.github.com/users/fengchang/repos","events_url":"https://api.github.com/users/fengchang/events{/privacy}","received_events_url":"https://api.github.com/users/fengchang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-27T09:50:37Z","updated_at":"2015-06-09T08:57:11Z","closed_at":"2015-06-09T08:57:11Z","body":"I'm using ApnsPHP from php-cli. It works well on my develop machine, but when executing same code on production machine. It will stop at\r\n```\r\n$sErrorResponse = @fread($this->_hSocket, self::ERROR_RESPONSE_SIZE);(Push.php:295)\r\n```\r\nIt will never stop, even thought I have set `$_nConnectTimeout` manually.\r\n\r\nThe php version of my production environment is `PHP 5.5.24-1+deb.sury.org~precise+1 (cli) (built: May  2 2015 09:50:58)`\r\n\r\nHave you ever meet this problem?"},"comment":{"url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/comments/110281798","html_url":"https://github.com/immobiliare/ApnsPHP/issues/94#issuecomment-110281798","issue_url":"https://api.github.com/repos/immobiliare/ApnsPHP/issues/94","id":110281798,"user":{"login":"fengchang","id":1174777,"avatar_url":"https://avatars.githubusercontent.com/u/1174777?v=3","gravatar_id":"","url":"https://api.github.com/users/fengchang","html_url":"https://github.com/fengchang","followers_url":"https://api.github.com/users/fengchang/followers","following_url":"https://api.github.com/users/fengchang/following{/other_user}","gists_url":"https://api.github.com/users/fengchang/gists{/gist_id}","starred_url":"https://api.github.com/users/fengchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengchang/subscriptions","organizations_url":"https://api.github.com/users/fengchang/orgs","repos_url":"https://api.github.com/users/fengchang/repos","events_url":"https://api.github.com/users/fengchang/events{/privacy}","received_events_url":"https://api.github.com/users/fengchang/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T08:57:11Z","updated_at":"2015-06-09T08:57:11Z","body":"@jbaez Thank you very much."}}