ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.249 by root, Sat Nov 26 03:34:50 2016 UTC vs.
Revision 1.250 by root, Tue Feb 26 01:35:48 2019 UTC

1914 ) { 1914 ) {
1915 return if 3 != length $1; # partial match, can't decide yet 1915 return if 3 != length $1; # partial match, can't decide yet
1916 1916
1917 # full match, valid TLS record 1917 # full match, valid TLS record
1918 my ($major, $minor) = unpack "CC", $1; 1918 my ($major, $minor) = unpack "CC", $1;
1919 $cb->($self, "accept", $major + $minor * 0.1); 1919 $cb->($self, "accept", $major, $minor);
1920 } else { 1920 } else {
1921 # mismatch == guaranteed not TLS 1921 # mismatch == guaranteed not TLS
1922 $cb->($self, undef); 1922 $cb->($self, undef);
1923 } 1923 }
1924 1924

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines