On Tue, 09 Apr 2019 at 16:59:20 +0200, gregor herrmann wrote:
> When I install the package with the patch and run our test case
> again, I don't get any hangs anymore:
> 
> % time perl -MLWP::UserAgent -e 
> 'LWP::UserAgent->new->post("https://facebook.com";, { data => "foo" }) or die'
> perl -MLWP::UserAgent -e   0.18s user 0.02s system 22% cpu 0.867 total 

With TLS 1.3?  (You can pass ‘SSL_version => "TLSv1_3"’ to ssl_opts to
force this.)  Doesn't work here, still hangs on read():

$ strace -etrace=select,read perl -MLWP::UserAgent -e 'LWP::UserAgent->new( 
ssl_opts =>
    {SSL_version => "TLSv1_3"})->post("https://facebook.com";, { data => "foo" 
})'
[…]
select(8, [3], [3], NULL, {tv_sec=180, tv_usec=0}) = 2 (in [3], out [3], left 
{tv_sec=179, tv_usec=999998})
read(3, "…", 5)  = 5
read(3, "…" 156) = 156
read(3,

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914034#101 and the
OpenSSL changelog: “Applications that use blocking I/O in combination
with something like select() or poll() will hang”

-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to