$r = $conn->connect($host, $port);
if ($r) {
- dbg("Sending '$sort $path HTTP/1.0'") if isdbg('async');
- $conn->send_later("$sort $path HTTP/1.0\n");
+ dbg("Sending '$sort $path HTTP/1.1'") if isdbg('async');
+ $conn->send_later("$sort $path HTTP/1.1\r\n");
my $h = delete $args{Host} || $host;
my $u = delete $args{'User-Agent'} || "DxSpider;$main::version;$main::build;$^O;$main::mycall";
my $d = delete $args{data};
- $conn->send_later("Host: $h\n");
- $conn->send_later("User-Agent: $u\n");
+ $conn->send_later("Host: $h\r\n");
+ $conn->send_later("User-Agent: $u\r\n");
while (my ($k,$v) = each %args) {
- $conn->send_later("$k: $v\n");
+ $conn->send_later("$k: $v\r\n");
}
- $conn->send_later("\n$d") if defined $d;
- $conn->send_later("\n");
+ $conn->send_later("\r\n$d") if defined $d;
+ $conn->send_later("\r\n");
}
return $r ? $conn : undef;
package main;
# set default paths, these should be overwritten by DXVars.pm
-use vars qw($data $system $cmd $localcmd $userfn);
+use vars qw($data $system $cmd $localcmd $userfn $clusteraddr $clusterport $yes $no $user_interval $lang);
+
+$lang = 'en'; # default language
+$clusteraddr = '127.0.0.1'; # cluster tcp host address - used for things like console.pl
+$clusterport = 27754; # cluster tcp port
+$yes = 'Yes'; # visual representation of yes
+$no = 'No'; # ditto for no
+$user_interval = 11*60; # the interval between unsolicited prompts if no traffic
+
# make sure that modules are searched in the order local then perl
BEGIN {
use strict;
use vars qw(@inqueue $systime $starttime $lockfn @outstanding_connects
- $zombies $root @listeners $lang $myalias @debug $userfn $clusteraddr
- $clusterport $mycall $decease $is_win $routeroot $me $reqreg $bumpexisting
+ $zombies $root @listeners $lang $myalias @debug $userfn
+ $mycall $decease $is_win $routeroot $me $reqreg $bumpexisting
$allowdxby $dbh $dsn $dbuser $dbpass $do_xml $systime_days $systime_daystart
$can_encode $maxconnect_user $maxconnect_node
);
require 5.004;
package main;
-use vars qw($data);
+use vars qw($data $clusteraddr $clusterport);
+
+$clusteraddr = '127.0.0.1'; # cluster tcp host address - used for things like console.pl
+$clusterport = 27754; # cluster tcp port
# search local then perl directories
BEGIN {