projects
/
MojoX-Gearman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aac68c
)
die on ERROR response
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 28 Feb 2011 17:31:54 +0000
(17:31 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 28 Feb 2011 17:31:54 +0000
(17:31 +0000)
lib/MojoX/Gearman.pm
patch
|
blob
|
history
diff --git
a/lib/MojoX/Gearman.pm
b/lib/MojoX/Gearman.pm
index
8c87379
..
4448b1c
100644
(file)
--- a/
lib/MojoX/Gearman.pm
+++ b/
lib/MojoX/Gearman.pm
@@
-88,6
+88,7
@@
sub req {
warn "# <<<< ",dump($data);
my ($magic, $type, $len) = unpack( "a4NN", $data );
die "wrong magic [$magic]" unless $magic eq "\0RES";
+ die "ERROR" if $type == 19;
$ret = substr($data,12,$len);
};