{"action":"created","issue":{"url":"https://api.github.com/repos/libwww-perl/net-http/issues/16","repository_url":"https://api.github.com/repos/libwww-perl/net-http","labels_url":"https://api.github.com/repos/libwww-perl/net-http/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/libwww-perl/net-http/issues/16/comments","events_url":"https://api.github.com/repos/libwww-perl/net-http/issues/16/events","html_url":"https://github.com/libwww-perl/net-http/issues/16","id":159230179,"number":16,"title":"Can't fetch https response that's 1024 bytes in size","user":{"login":"FROGGS","id":141968,"avatar_url":"https://avatars.githubusercontent.com/u/141968?v=3","gravatar_id":"","url":"https://api.github.com/users/FROGGS","html_url":"https://github.com/FROGGS","followers_url":"https://api.github.com/users/FROGGS/followers","following_url":"https://api.github.com/users/FROGGS/following{/other_user}","gists_url":"https://api.github.com/users/FROGGS/gists{/gist_id}","starred_url":"https://api.github.com/users/FROGGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FROGGS/subscriptions","organizations_url":"https://api.github.com/users/FROGGS/orgs","repos_url":"https://api.github.com/users/FROGGS/repos","events_url":"https://api.github.com/users/FROGGS/events{/privacy}","received_events_url":"https://api.github.com/users/FROGGS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T17:47:58Z","updated_at":"2016-06-20T11:08:21Z","closed_at":"2016-06-20T11:08:21Z","body":"I'm using SOAP::Lite to query a SOAP service, and sometime the response (including headers) is exactly 1024 bytes long.\r\nWhen this happens, the SOAP call will result in a timeout because of these lines:\r\nhttps://github.com/libwww-perl/net-http/blob/master/lib/Net/HTTP/Methods.pm#L276-L279\r\n```perl\r\n                # consume all incoming bytes\r\n                while(1) {\r\n                    my $bytes_read = $self->sysread($_, 1024, length);\r\n                    if(defined $bytes_read) {\r\n                        $new_bytes += $bytes_read;\r\n                        last if $bytes_read < 1024;\r\n                    }\r\n                    [...]\r\n```\r\nI've got a Wireshark log of this case, which highlights this problem.\r\n(like adding debugging statements to that piece of code).\r\n\r\nWhat's the best way to fix this? I'd like to help on this issue...\r\n"},"comment":{"url":"https://api.github.com/repos/libwww-perl/net-http/issues/comments/227113770","html_url":"https://github.com/libwww-perl/net-http/issues/16#issuecomment-227113770","issue_url":"https://api.github.com/repos/libwww-perl/net-http/issues/16","id":227113770,"user":{"login":"FROGGS","id":141968,"avatar_url":"https://avatars.githubusercontent.com/u/141968?v=3","gravatar_id":"","url":"https://api.github.com/users/FROGGS","html_url":"https://github.com/FROGGS","followers_url":"https://api.github.com/users/FROGGS/followers","following_url":"https://api.github.com/users/FROGGS/following{/other_user}","gists_url":"https://api.github.com/users/FROGGS/gists{/gist_id}","starred_url":"https://api.github.com/users/FROGGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FROGGS/subscriptions","organizations_url":"https://api.github.com/users/FROGGS/orgs","repos_url":"https://api.github.com/users/FROGGS/repos","events_url":"https://api.github.com/users/FROGGS/events{/privacy}","received_events_url":"https://api.github.com/users/FROGGS/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T11:08:21Z","updated_at":"2016-06-20T11:08:21Z","body":"The patch in #15 works perfectly. Please apply."}}
{"actor":{"display_login":"FROGGS"}}