{"action":"opened","issue":{"url":"https://api.github.com/repos/jmathai/php-multi-curl/issues/25","labels_url":"https://api.github.com/repos/jmathai/php-multi-curl/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/jmathai/php-multi-curl/issues/25/comments","events_url":"https://api.github.com/repos/jmathai/php-multi-curl/issues/25/events","html_url":"https://github.com/jmathai/php-multi-curl/issues/25","id":127071342,"number":25,"title":"Check for timeout?","user":{"login":"agerber23","id":1305139,"avatar_url":"https://avatars.githubusercontent.com/u/1305139?v=3","gravatar_id":"","url":"https://api.github.com/users/agerber23","html_url":"https://github.com/agerber23","followers_url":"https://api.github.com/users/agerber23/followers","following_url":"https://api.github.com/users/agerber23/following{/other_user}","gists_url":"https://api.github.com/users/agerber23/gists{/gist_id}","starred_url":"https://api.github.com/users/agerber23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agerber23/subscriptions","organizations_url":"https://api.github.com/users/agerber23/orgs","repos_url":"https://api.github.com/users/agerber23/repos","events_url":"https://api.github.com/users/agerber23/events{/privacy}","received_events_url":"https://api.github.com/users/agerber23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T03:27:37Z","updated_at":"2016-01-17T03:27:37Z","closed_at":null,"body":"Hey, I have some custom curl parameters:\r\n\r\n $ch = curl_init(\"http://google.com\");\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($ch, CURLOPT_TIMEOUT_MS , 1); //timeout in seconds\r\n $google = $mc->addCurl($ch);\r\n\r\n$e_code = curl_multi_info_read($google);\r\nvar_dump($e_code);\r\n\r\ndo you know of any way to check that the network call timed out?\r\n\r\nI tried using the function curl_multi_info_read, but it returns \"expects parameter 1 to be resource, object given\"\r\n\r\nThanks."}}