{"action":"created","issue":{"url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/72","labels_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/72/comments","events_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/72/events","html_url":"https://github.com/d11wtq/dockerpty-restored-2/issues/72","id":107835806,"number":72,"title":"Read doesn't always give the total bytes requested","user":{"login":"d11wtq","id":37948,"avatar_url":"https://avatars.githubusercontent.com/u/37948?v=3","gravatar_id":"","url":"https://api.github.com/users/d11wtq","html_url":"https://github.com/d11wtq","followers_url":"https://api.github.com/users/d11wtq/followers","following_url":"https://api.github.com/users/d11wtq/following{/other_user}","gists_url":"https://api.github.com/users/d11wtq/gists{/gist_id}","starred_url":"https://api.github.com/users/d11wtq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d11wtq/subscriptions","organizations_url":"https://api.github.com/users/d11wtq/orgs","repos_url":"https://api.github.com/users/d11wtq/repos","events_url":"https://api.github.com/users/d11wtq/events{/privacy}","received_events_url":"https://api.github.com/users/d11wtq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-23T01:47:29Z","updated_at":"2015-09-23T01:47:59Z","closed_at":"2015-09-23T01:47:32Z","body":"#25 Issue by __delfick__, created on: 2014-11-07T05:43:39Z\n\nThere are two places where the semantics of the docker stream means we\r\nknow how many bytes can be read.\r\n\r\nIn those two cases, there is an assumption that read will return\r\nthe amount asked for. Whereas the reality is that less than the\r\nrequested amount can be returned.\r\n\r\nThis means if the stream is slow to produce the right number of bytes,\r\nthen there can be discrepancies in what dockerpty thinks is next in the\r\nstream.\r\n\r\nSo we keep reading until either the stream stops or the amount of data\r\nrequired has been read"},"comment":{"url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/comments/142470197","html_url":"https://github.com/d11wtq/dockerpty-restored-2/issues/72#issuecomment-142470197","issue_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/72","id":142470197,"user":{"login":"d11wtq","id":37948,"avatar_url":"https://avatars.githubusercontent.com/u/37948?v=3","gravatar_id":"","url":"https://api.github.com/users/d11wtq","html_url":"https://github.com/d11wtq","followers_url":"https://api.github.com/users/d11wtq/followers","following_url":"https://api.github.com/users/d11wtq/following{/other_user}","gists_url":"https://api.github.com/users/d11wtq/gists{/gist_id}","starred_url":"https://api.github.com/users/d11wtq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d11wtq/subscriptions","organizations_url":"https://api.github.com/users/d11wtq/orgs","repos_url":"https://api.github.com/users/d11wtq/repos","events_url":"https://api.github.com/users/d11wtq/events{/privacy}","received_events_url":"https://api.github.com/users/d11wtq/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T01:47:59Z","updated_at":"2015-09-23T01:47:59Z","body":"Comment by __aanand__, created on: 2014-11-19T16:22:52Z\n\nLGTM"}}