Diff

net/server_event.lua @ 5755:9a9c2c254412

net.server_event: Pass ondrain handler from listener
author Kim Alvefur <zash@zash.se>
date Mon, 22 Jul 2013 18:17:30 +0200
parent 5531:483f795f6f99
child 5756:61521ce49aae
child 6045:a5b5bce71a11
line wrap: on
line diff
--- a/net/server_event.lua	Mon Jul 22 17:28:37 2013 +0200
+++ b/net/server_event.lua	Mon Jul 22 18:17:30 2013 +0200
@@ -477,6 +477,7 @@
 			ondisconnect = listener.ondisconnect;  -- will be called when client disconnects
 			onincoming = listener.onincoming;  -- will be called when client sends data
 			ontimeout = listener.ontimeout; -- called when fatal socket timeout occurs
+			ondrain = listener.ondrain; -- called when writebuffer is empty
 			onstatus = listener.onstatus; -- called for status changes (e.g. of SSL/TLS)
 			eventread = false, eventwrite = false, eventclose = false,
 			eventhandshake = false, eventstarthandshake = false;  -- event handler