projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put in long path stuff for show/muf (not convinced it works)
[spider.git]
/
perl
/
client.pl
diff --git
a/perl/client.pl
b/perl/client.pl
index 376587645c8599abb15b2bb43ac82238afad2722..459c26323a34480131247918043d9124649962dd 100755
(executable)
--- a/
perl/client.pl
+++ b/
perl/client.pl
@@
-270,6
+270,10
@@
sub dochat
$line = <$rfh>;
$line =~ s/\r//og;
}
$line = <$rfh>;
$line =~ s/\r//og;
}
+ if (length $line == 0) {
+ dbg('connect', "received 0 length line, aborting...");
+ cease(11);
+ }
dbg('connect', "received \"$line\"");
if ($abort && $line =~ /$abort/i) {
dbg('connect', "aborted on /$abort/");
dbg('connect', "received \"$line\"");
if ($abort && $line =~ /$abort/i) {
dbg('connect', "aborted on /$abort/");
@@
-493,7
+497,7
@@
Msg->set_event_handler($stdin, "read" => \&rec_stdin);
for (;;) {
my $t;
for (;;) {
my $t;
- Msg->event_loop(1,
0.010
);
+ Msg->event_loop(1,
1
);
$t = time;
if ($t > $lasttime) {
if ($outqueue) {
$t = time;
if ($t > $lasttime) {
if ($outqueue) {