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"
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
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.
Anyways, it seem more correct to have a separate type. <http://github.com/gisle/libwww- perl/commit/6cae165ca414ddd43ccdec37221a845291c9ab10>