1. implemented first cut at non blocking connect
2. removed memory leakage in connects
3. add link IP address if available on who
+4. made the \r\n work correctly
10Mar01=======================================================================
1. minor changes to the admin manual to reflect differences in distibutions
thanks to pa3ezl (g0vgs)
my ($action, $count, $key, $data) = (0,0,0,0);
for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
- if ($data =~ m{isolate =>}) {
+ if ($data =~ m{isolate\s*=>}) {
my $u = DXUser->get_current($key);
if ($u && $u->isolate) {
push @out, $key;
if ($conn->{state} eq 'WC' && exists $conn->{cmd} && @{$conn->{cmd}} == 0) {
$conn->to_connected($conn->{call}, 'O', 'telnet');
}
- } elsif ($conn->{msg} =~ /\n/) {
- my @lines = split /\r?\n/, $conn->{msg};
- if ($conn->{msg} =~ /\n$/) {
+ } elsif ($conn->{msg} =~ /\cJ/) {
+ my @lines = $conn->{msg} =~ /([^\cM\cJ]*)\cM?\cJ/g;
+ if ($conn->{msg} =~ /\cJ$/) {
delete $conn->{msg};
} else {
$conn->{msg} = pop @lines;
for (;;) {
# $DB::trace = 1;
- Msg->event_loop(10, 0.001);
+ Msg->event_loop(25, 0.001);
my $timenow = time;
process_inqueue(); # read in lines from the input queue and despatch them
# $DB::trace = 0;