about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-25 05:26:23 +0000
committerEric Wong <e@80x24.org>2016-02-25 05:26:40 +0000
commit92caa961d72bbb4a6e739b8a50927e62aa3a3e8f (patch)
tree094dc40cc97ecbc65d046e6a7be451bbb422e43e /lib
parent0258ba3cd2d32ee46f95e9fc8d0adeb857459d64 (diff)
downloadpublic-inbox-92caa961d72bbb4a6e739b8a50927e62aa3a3e8f.tar.gz
Danga::Socket will die on us if we hit the base implementations.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/HTTP.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index a5149ac2..f65dedaa 100644
--- a/lib/PublicInbox/HTTP.pm
+++ b/lib/PublicInbox/HTTP.pm
@@ -331,4 +331,9 @@ sub quit {
         $self->close;
 }
 
+# callbacks for Danga::Socket
+
+sub event_hup { $_[0]->close }
+sub event_err { $_[0]->close }
+
 1;