Comparison

plugins/mod_bosh.lua @ 7375:6ae3cf899b25

mod_bosh: Return if a response has been sent already (See #343)
author Kim Alvefur <zash@zash.se>
date Tue, 19 Apr 2016 12:14:07 +0200
parent 7374:3e8851b7c6e8
child 7376:f9a5d9f60561
comparison
equal deleted inserted replaced
7374:3e8851b7c6e8 7375:6ae3cf899b25
177 session:close(); 177 session:close();
178 return nil; 178 return nil;
179 else 179 else
180 return true; -- Inform http server we shall reply later 180 return true; -- Inform http server we shall reply later
181 end 181 end
182 elseif response.finished then
183 return; -- A response has been sent already
182 end 184 end
183 module:log("warn", "Unable to associate request with a session (incomplete request?)"); 185 module:log("warn", "Unable to associate request with a session (incomplete request?)");
184 return 400; 186 return 400;
185 end 187 end
186 188