Mercurial > prosody-hg
comparison net/http/server.lua @ 6360:ffcd3992a40c
net.http.server: Comment out a log message
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 27 Aug 2014 10:44:45 +0200 |
| parents | dee0f05ccf70 |
| children | 769a3577dd85 4220ffb87b22 |
comparison
equal
deleted
inserted
replaced
| 6359:c74670b3be53 | 6360:ffcd3992a40c |
|---|---|
| 96 function listener.onconnect(conn) | 96 function listener.onconnect(conn) |
| 97 local secure = conn:ssl() and true or nil; | 97 local secure = conn:ssl() and true or nil; |
| 98 local pending = {}; | 98 local pending = {}; |
| 99 local waiting = false; | 99 local waiting = false; |
| 100 local function process_next() | 100 local function process_next() |
| 101 if waiting then log("debug", "can't process_next, waiting"); return; end | 101 if waiting then return; end -- log("debug", "can't process_next, waiting"); |
| 102 waiting = true; | 102 waiting = true; |
| 103 while sessions[conn] and #pending > 0 do | 103 while sessions[conn] and #pending > 0 do |
| 104 local request = t_remove(pending); | 104 local request = t_remove(pending); |
| 105 --log("debug", "process_next: %s", request.path); | 105 --log("debug", "process_next: %s", request.path); |
| 106 --handle_request(conn, request, process_next); | 106 --handle_request(conn, request, process_next); |
