projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a22dbff
)
fix error message on disconnect from peer
author
Dirk Koopman
<djk@tobit.co.uk>
Fri, 23 Dec 2011 13:06:31 +0000
(13:06 +0000)
committer
Dirk Koopman
<djk@tobit.co.uk>
Fri, 23 Dec 2011 13:06:31 +0000
(13:06 +0000)
perl/Msg.pm
patch
|
blob
|
history
perl/Version.pm
patch
|
blob
|
history
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 60906c5964df83b0e547cd28628caaafefdf149c..3fa0e6762166816f86d31ebaaf2d2849b45a5ef9 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-234,9
+234,14
@@
sub disconnect
}
}
- if (
defined($sock)
) {
+ if (
ref $sock && $sock->isa('AnyEvent::Handle') && exists $sock->{fh}
) {
shutdown($sock->{fh}, 2);
$sock->destroy;
+ } else {
+ my $s;
+ $s = "already destroyed" unless exists $sock->{fh};
+ $s ||= ref $sock || $sock || "undefined";
+ dbg("Msg::disconnect trying to disconnect a $s socket") if isdbg('chan');
}
unless ($main::is_win) {
diff --git
a/perl/Version.pm
b/perl/Version.pm
index 99b2e673ff704ff9fb5f1e01abf144015835e94e..3c7bad08888e93f71bc132ccde0b50083aa0a19f 100644
(file)
--- a/
perl/Version.pm
+++ b/
perl/Version.pm
@@
-11,7
+11,7
@@
use vars qw($version $subversion $build $gitversion);
$version = '1.56';
$subversion = '0';
-$build = '
8
';
-$gitversion = '
0702d38
';
+$build = '
9
';
+$gitversion = '
a22dbff
';
1;