[PATCH] Work around LWP::UserAgent / Net::HTTP buffering It's possible for the LWP::UserAgent request() call to get both the headers and (parts of) the body in the same read(2) call. When that happens, Net::HTTP (as used by LWP::UserAgent) will buffer the body, but the explicit read() call on the socket bypasses this buffering, resulting in empty data.
Mark the resulting test failures as TODO by breaking encapsulation and peeking in the Net::HTTP buffer. Note that this is a hack and not a proper fix.
[PATCH] Support IPv6 When HTTP::Daemon will support IPv6 <https://rt.cpan.org/Public/Bug/Display.html?id=91699>, tests will fail because LWP::UserAgent still refuses proxy URL with IPv6 numerical host name <https://rt.cpan.org/Public/Bug/Display.html?id=94654>.
Once the LWP::UserAgent is fixed, HTTP-Proxy tests will still fail because they do not expect a client or server could use IPv6.
This patch fixes the tests and replaces all IO::Socket::INET occurrences with IO::Socket::IP.