Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 48899
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: dave [...] dtsp.co.nz
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.830
Fixed in: (no value)



Subject: HTTPS UserAgent withdraws connection cache sockets of type "http"
Download (untitled) / with headers
text/plain 524b
LWP::Protocol::https inherits directly from LWP::Protocol::http, and doesn't make any attempt to override the new socket behaviour. As a result, it uses LWP::Protocol::http::_new_socket(), which will withdraw sockets of type "http" from the connection cache. (and, of course, deposit them too.) This bug is pretty well hidden :) It just happens to be visible to me because I perform an inhumane and hideous hack involving subclassing LWP::ConnCache in order to work around http://rt.cpan.org/Ticket/Display.html?id=40912
Download (untitled) / with headers
text/plain 235b
Does it actually matter since https will live on a different port. The call is: $conn_cache->withdraw("http", "$host:$port") which would normally be "$host:80" for plan http connections and "$host:443" for the https connections.
Download (untitled) / with headers
text/plain 142b
Anyways, it seem more correct to have a separate type. <http://github.com/gisle/libwww- perl/commit/6cae165ca414ddd43ccdec37221a845291c9ab10>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.