From f416d651f3d6551aa0efbcdb8b5838269de9bff3 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Fri, 2 Aug 2013 15:52:29 -0700 Subject: Forgot to pass on the timeout event here. --- src/BLua.cc | 1 + src/HttpServer.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/BLua.cc b/src/BLua.cc index 32947cd..9a2140f 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -564,6 +564,7 @@ void Balau::Lua::load(const String & s, bool docall) throw (GeneralException) { } void Balau::Lua::dumpvars(IO h, const String & prefix, int i) { + Task::SimpleContext sc; h->writeString(prefix); h->writeString(" = {\n"); dumpvars_r(h, i); diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 2bc0710..140fe78 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -488,7 +488,7 @@ bool Balau::HttpWorker::handleClient() { while (true) { try { - m_strm->forceRead(postData, length); + m_strm->forceRead(postData, length, &evtTimeout); break; } catch (EAgain) { -- cgit v1.2.3