* [PATCH] httpd: fill in missing Danga::Socket callbacks
@ 2016-02-25 5:26 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-02-25 5:26 UTC (permalink / raw)
To: meta
Danga::Socket will die on us if we hit the base implementations.
---
lib/PublicInbox/HTTP.pm | 5 +++++
public-inbox-httpd | 1 +
2 files changed, 6 insertions(+)
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index a5149ac..f65deda 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;
diff --git a/public-inbox-httpd b/public-inbox-httpd
index 0c1e24c..772333e 100644
--- a/public-inbox-httpd
+++ b/public-inbox-httpd
@@ -72,6 +72,7 @@ sub new {
sub event_read { $_[0]->{cb}->() }
sub event_hup { $_[0]->{cb}->() }
+sub event_err { $_[0]->{cb}->() }
sub sysread { shift->{sock}->sysread(@_) }
1;
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-25 5:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 5:26 [PATCH] httpd: fill in missing Danga::Socket callbacks Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).