… | |
… | |
821 | my $was_persistent; # true if this is actually a recycled connection |
821 | my $was_persistent; # true if this is actually a recycled connection |
822 | |
822 | |
823 | # the key to use in the keepalive cache |
823 | # the key to use in the keepalive cache |
824 | my $ka_key = "$uscheme\x00$uhost\x00$uport\x00$arg{sessionid}"; |
824 | my $ka_key = "$uscheme\x00$uhost\x00$uport\x00$arg{sessionid}"; |
825 | |
825 | |
826 | $hdr{connection} = ($persistent ? $keepalive ? "keep-alive " : "" : "close ") . "Te"; #1.1 |
826 | $hdr{connection} = ($persistent ? $keepalive ? "keep-alive, " : "" : "close, ") . "Te"; #1.1 |
827 | $hdr{te} = "trailers" unless exists $hdr{te}; #1.1 |
827 | $hdr{te} = "trailers" unless exists $hdr{te}; #1.1 |
828 | |
828 | |
829 | my %state = (connect_guard => 1); |
829 | my %state = (connect_guard => 1); |
830 | |
830 | |
831 | my $ae_error = 595; # connecting |
831 | my $ae_error = 595; # connecting |