{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/42","labels_url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/42/comments","events_url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/42/events","html_url":"https://github.com/JuliaWeb/Requests.jl/issues/42","id":57971065,"number":42,"title":"Timing issue in process_response","user":{"login":"sbromberger","id":941359,"avatar_url":"https://avatars.githubusercontent.com/u/941359?v=3","gravatar_id":"","url":"https://api.github.com/users/sbromberger","html_url":"https://github.com/sbromberger","followers_url":"https://api.github.com/users/sbromberger/followers","following_url":"https://api.github.com/users/sbromberger/following{/other_user}","gists_url":"https://api.github.com/users/sbromberger/gists{/gist_id}","starred_url":"https://api.github.com/users/sbromberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbromberger/subscriptions","organizations_url":"https://api.github.com/users/sbromberger/orgs","repos_url":"https://api.github.com/users/sbromberger/repos","events_url":"https://api.github.com/users/sbromberger/events{/privacy}","received_events_url":"https://api.github.com/users/sbromberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-17T19:39:06Z","updated_at":"2015-02-18T18:32:37Z","closed_at":"2015-02-18T18:32:37Z","body":"Relevant code pasted here for convenience:\r\n\r\n```\r\n    function process_response(stream)\r\n        r = Response()\r\n        rp = ResponseParser(r,stream)\r\n        while isopen(stream)\r\n            data = readavailable(stream)\r\n            add_data(rp, data)\r\n        end\r\n        http_parser_execute(rp.parser,rp.settings,\"\") #EOF\r\n        r\r\n    end\r\n```\r\n\r\nThis frequently (but not always!) results in a lockup:\r\n\r\n```\r\njulia> using Requests\r\n\r\njulia> @time g=get(\"https://github.com\")  <---- the REPL completely locks here.\r\n```\r\n\r\nHowever, when I put a 0.005-second sleep in before `add_data`, I get no lockup.\r\n\r\n```\r\njulia> @time g=get(\"https://github.com\")\r\nelapsed time: 4.772878302 seconds (262 MB allocated, 0.81% gc time in 12 pauses with 0 full sweep)\r\nResponse(200 OK, 25 Headers, 16965 Bytes in Body)\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/comments/74919677","html_url":"https://github.com/JuliaWeb/Requests.jl/issues/42#issuecomment-74919677","issue_url":"https://api.github.com/repos/JuliaWeb/Requests.jl/issues/42","id":74919677,"user":{"login":"sbromberger","id":941359,"avatar_url":"https://avatars.githubusercontent.com/u/941359?v=3","gravatar_id":"","url":"https://api.github.com/users/sbromberger","html_url":"https://github.com/sbromberger","followers_url":"https://api.github.com/users/sbromberger/followers","following_url":"https://api.github.com/users/sbromberger/following{/other_user}","gists_url":"https://api.github.com/users/sbromberger/gists{/gist_id}","starred_url":"https://api.github.com/users/sbromberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbromberger/subscriptions","organizations_url":"https://api.github.com/users/sbromberger/orgs","repos_url":"https://api.github.com/users/sbromberger/repos","events_url":"https://api.github.com/users/sbromberger/events{/privacy}","received_events_url":"https://api.github.com/users/sbromberger/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T18:32:37Z","updated_at":"2015-02-18T18:32:37Z","body":"I think this is closed via https://github.com/JuliaWeb/GnuTLS.jl/issues/21 and #43."}}