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.215 by root, Sun Jan 23 10:44:48 2011 UTC vs.
Revision 1.216 by root, Sun Jan 23 11:15:09 2011 UTC

2050 if $self->{tls} > 0; 2050 if $self->{tls} > 0;
2051 2051
2052 delete @$self{qw(_rbio _wbio _tls_wbuf _on_starttls)}; 2052 delete @$self{qw(_rbio _wbio _tls_wbuf _on_starttls)};
2053} 2053}
2054 2054
2055=item $handle->resettls
2056
2057This rarely-used method simply resets and TLS state on the handle, usually
2058causing data loss.
2059
2060One case where it may be useful is when you want to skip over the data in
2061the stream but you are not interested in interpreting it, so data loss is
2062no concern.
2063
2064=cut
2065
2066*resettls = \&_freetls;
2067
2055sub DESTROY { 2068sub DESTROY {
2056 my ($self) = @_; 2069 my ($self) = @_;
2057 2070
2058 &_freetls; 2071 &_freetls;
2059 2072

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines