diff options
author | Eric Wong <e@80x24.org> | 2019-06-10 02:18:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-10 05:05:15 +0000 |
commit | 180fe300da41ab0251147055bbb9ae5d9ebd2b5b (patch) | |
tree | f0b494febe54537142e584d5397db14c8ddd2ed9 /lib/PublicInbox/DS.pm | |
parent | dbf0cad365839a99e8582d6e26ce40c02508155d (diff) | |
download | public-inbox-180fe300da41ab0251147055bbb9ae5d9ebd2b5b.tar.gz |
We won't be needing it, not even for TLS support.
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r-- | lib/PublicInbox/DS.pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 7d7baac7..5177d1f1 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -487,26 +487,6 @@ retry: ### I N S T A N C E M E T H O D S ##################################################################### -=head2 C<< $obj->steal_socket() >> - -Basically returns our socket and makes it so that we don't try to close it, -but we do remove it from epoll handlers. THIS CLOSES $self. It is the same -thing as calling close, except it gives you the socket to use. - -=cut -sub steal_socket { - my PublicInbox::DS $self = $_[0]; - return if $self->{closed}; - - # cleanup does most of the work of closing this socket - $self->_cleanup(); - - # now undef our internal sock and fd structures so we don't use them - my $sock = $self->{sock}; - $self->{sock} = undef; - return $sock; -} - =head2 C<< $obj->close >> Close the socket. |