1 # NOTE: Derived from blib/lib/Net/SSLeay.pm.
2 # Changes made here will be lost when autosplit is run again.
6 #line 1891 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/tcp_read_all.al)"
9 $how_much = 2000000000 unless $how_much;
14 while ($how_much > 0) {
15 $n = sysread(SSLCAT_S,$got, (($bsize < $how_much) ? $bsize : $how_much));
16 warn "Read error: $! ($n,$how_much)" unless defined $n;
19 debug_read(\$reply, \$got) if $trace>1;
22 return wantarray ? ($reply, $errs) : $reply;
25 # end of Net::SSLeay::tcp_read_all