{"action":"closed","issue":{"url":"https://api.github.com/repos/rakslice/proxy-mesh/issues/6","repository_url":"https://api.github.com/repos/rakslice/proxy-mesh","labels_url":"https://api.github.com/repos/rakslice/proxy-mesh/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rakslice/proxy-mesh/issues/6/comments","events_url":"https://api.github.com/repos/rakslice/proxy-mesh/issues/6/events","html_url":"https://github.com/rakslice/proxy-mesh/issues/6","id":234508376,"number":6,"title":"truncated files","user":{"login":"rakslice","id":1845104,"avatar_url":"https://avatars0.githubusercontent.com/u/1845104?v=3","gravatar_id":"","url":"https://api.github.com/users/rakslice","html_url":"https://github.com/rakslice","followers_url":"https://api.github.com/users/rakslice/followers","following_url":"https://api.github.com/users/rakslice/following{/other_user}","gists_url":"https://api.github.com/users/rakslice/gists{/gist_id}","starred_url":"https://api.github.com/users/rakslice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakslice/subscriptions","organizations_url":"https://api.github.com/users/rakslice/orgs","repos_url":"https://api.github.com/users/rakslice/repos","events_url":"https://api.github.com/users/rakslice/events{/privacy}","received_events_url":"https://api.github.com/users/rakslice/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-08T12:19:41Z","updated_at":"2017-06-09T18:56:18Z","closed_at":"2017-06-09T18:56:18Z","body":"I've seen this sometimes serving truncated files.\r\n\r\nManually deleting the file's directory out of the cache directory and letting it redownload on another try has always worked for me.\r\n\r\nThe metadata is written at the start of an upstream download rather than the end, and there are no safeguards in place for cases where the connection closes unexpectedly or the client downstream of the proxy cancels the download (I haven't looked into whether the upstream download would complete in that case); when a partially downloaded file is left behind, the next request will use the partial file from the cache"}}
{"actor":{"display_login":"rakslice"}}