{"action":"created","issue":{"url":"https://api.github.com/repos/php/php-src/issues/1490","labels_url":"https://api.github.com/repos/php/php-src/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/php/php-src/issues/1490/comments","events_url":"https://api.github.com/repos/php/php-src/issues/1490/events","html_url":"https://github.com/php/php-src/pull/1490","id":103084533,"number":1490,"title":"Fix #70361: HTTP stream wrapper doesn't close keep-alive connections","user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars.githubusercontent.com/u/2743004?v=3","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-25T18:09:25Z","updated_at":"2015-08-27T12:29:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/php/php-src/pulls/1490","html_url":"https://github.com/php/php-src/pull/1490","diff_url":"https://github.com/php/php-src/pull/1490.diff","patch_url":"https://github.com/php/php-src/pull/1490.patch"},"body":"https://bugs.php.net/bug.php?id=70361"},"comment":{"url":"https://api.github.com/repos/php/php-src/issues/comments/135407310","html_url":"https://github.com/php/php-src/pull/1490#issuecomment-135407310","issue_url":"https://api.github.com/repos/php/php-src/issues/1490","id":135407310,"user":{"login":"weltling","id":22016,"avatar_url":"https://avatars.githubusercontent.com/u/22016?v=3","gravatar_id":"","url":"https://api.github.com/users/weltling","html_url":"https://github.com/weltling","followers_url":"https://api.github.com/users/weltling/followers","following_url":"https://api.github.com/users/weltling/following{/other_user}","gists_url":"https://api.github.com/users/weltling/gists{/gist_id}","starred_url":"https://api.github.com/users/weltling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weltling/subscriptions","organizations_url":"https://api.github.com/users/weltling/orgs","repos_url":"https://api.github.com/users/weltling/repos","events_url":"https://api.github.com/users/weltling/events{/privacy}","received_events_url":"https://api.github.com/users/weltling/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T12:29:41Z","updated_at":"2015-08-27T12:29:41Z","body":"@kelunik clearing in the meaning that no Connection header is being sent. Overriding to keep-alive or anything alse does not really make sense for file_get_contents() - it will always close the stream at the end. And the HTTP wrapper doesn't support writing. But clearing that header might or might be not needed in some situations, just don't see how to do it in this patch. Hence the question.\r\n\r\nBtw setting stream context to use HTTP/1.1 currently doesn't automatically send the Connection header.\r\n\r\nCheers."}}