{"action":"created","issue":{"url":"https://api.github.com/repos/reactphp/http/issues/9","labels_url":"https://api.github.com/repos/reactphp/http/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/reactphp/http/issues/9/comments","events_url":"https://api.github.com/repos/reactphp/http/issues/9/events","html_url":"https://github.com/reactphp/http/pull/9","id":38995845,"number":9,"title":"Support http connection keep-alive","user":{"login":"barrylb","id":3704409,"avatar_url":"https://avatars.githubusercontent.com/u/3704409?v=3","gravatar_id":"","url":"https://api.github.com/users/barrylb","html_url":"https://github.com/barrylb","followers_url":"https://api.github.com/users/barrylb/followers","following_url":"https://api.github.com/users/barrylb/following{/other_user}","gists_url":"https://api.github.com/users/barrylb/gists{/gist_id}","starred_url":"https://api.github.com/users/barrylb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrylb/subscriptions","organizations_url":"https://api.github.com/users/barrylb/orgs","repos_url":"https://api.github.com/users/barrylb/repos","events_url":"https://api.github.com/users/barrylb/events{/privacy}","received_events_url":"https://api.github.com/users/barrylb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactphp/http/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-29T14:45:11Z","updated_at":"2015-04-12T13:50:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reactphp/http/pulls/9","html_url":"https://github.com/reactphp/http/pull/9","diff_url":"https://github.com/reactphp/http/pull/9.diff","patch_url":"https://github.com/reactphp/http/pull/9.patch"},"body":"Supporting HTTP 1.1 Connection: Keep-Alive is essentially a matter of just not closing the connection after sending a response, and ensuring processing resumes when further data arrives over the connection.\r\n\r\nWith this modification, a 'keepAlive' parameter is added to the Response end function. The caller can choose to keep the connection open by specifying keepAlive = true. Previous behaviour of closing the connection is retained if the parameter is not specified.\r\n\r\nTesting performance with small HTTP POST messages sent using a test program (using php curl) to a test server:\r\n* Closing connection each time: 350 requests per second.\r\n* Persistent connection: 3125 requests per second."},"comment":{"url":"https://api.github.com/repos/reactphp/http/issues/comments/92065096","html_url":"https://github.com/reactphp/http/pull/9#issuecomment-92065096","issue_url":"https://api.github.com/repos/reactphp/http/issues/9","id":92065096,"user":{"login":"WyriHaximus","id":147145,"avatar_url":"https://avatars.githubusercontent.com/u/147145?v=3","gravatar_id":"","url":"https://api.github.com/users/WyriHaximus","html_url":"https://github.com/WyriHaximus","followers_url":"https://api.github.com/users/WyriHaximus/followers","following_url":"https://api.github.com/users/WyriHaximus/following{/other_user}","gists_url":"https://api.github.com/users/WyriHaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/WyriHaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WyriHaximus/subscriptions","organizations_url":"https://api.github.com/users/WyriHaximus/orgs","repos_url":"https://api.github.com/users/WyriHaximus/repos","events_url":"https://api.github.com/users/WyriHaximus/events{/privacy}","received_events_url":"https://api.github.com/users/WyriHaximus/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T13:50:13Z","updated_at":"2015-04-12T13:50:13Z","body":"LGTM :+1: "}}