Revert bad Event::Lib changes
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@808 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
c636c9ab92
commit
7fa3918803
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
package Qpsmtpd::PollServer;
|
package Qpsmtpd::PollServer;
|
||||||
|
|
||||||
use Event::Lib qw(:dns);
|
|
||||||
|
|
||||||
use base ('Danga::Client', 'Qpsmtpd::SMTP');
|
use base ('Danga::Client', 'Qpsmtpd::SMTP');
|
||||||
# use fields required to be a subclass of Danga::Client. Have to include
|
# use fields required to be a subclass of Danga::Client. Have to include
|
||||||
# all fields used by Qpsmtpd.pm here too.
|
# all fields used by Qpsmtpd.pm here too.
|
||||||
@ -180,17 +178,12 @@ sub start_conversation {
|
|||||||
$conn->remote_port($port);
|
$conn->remote_port($port);
|
||||||
$conn->remote_info("[$ip]");
|
$conn->remote_info("[$ip]");
|
||||||
|
|
||||||
event_resolve_reverse($ip, sub {
|
ParaDNS->new(
|
||||||
$conn->remote_info($conn->remote_host($_[3]));
|
finished => sub { $self->run_hooks("connect") },
|
||||||
$self->run_hooks('connect');
|
# NB: Setting remote_info to the same as remote_host
|
||||||
});
|
callback => sub { $conn->remote_info($conn->remote_host($_[0])) },
|
||||||
|
host => $ip,
|
||||||
# ParaDNS->new(
|
);
|
||||||
# finished => sub { $self->run_hooks("connect") },
|
|
||||||
# # NB: Setting remote_info to the same as remote_host
|
|
||||||
# callback => sub { $conn->remote_info($conn->remote_host($_[0])) },
|
|
||||||
# host => $ip,
|
|
||||||
# );
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user