From ef712de9e3af7a4693e31eb53cf8f69ceb962057 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 18 Sep 2017 13:51:22 -0700 Subject: [PATCH] Fix concurrent requests counter leak --- lib/cwmp.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cwmp.coffee b/lib/cwmp.coffee index 8b7d4a3..cea253f 100644 --- a/lib/cwmp.coffee +++ b/lib/cwmp.coffee @@ -734,7 +734,6 @@ listener = (httpRequest, httpResponse) -> else stream = httpRequest - stats.concurrentRequests += 1 chunks = [] bytes = 0 @@ -754,6 +753,7 @@ listener = (httpRequest, httpResponse) -> return body stream.on('end', () -> + stats.concurrentRequests += 1 rpc = null parseWarnings = [] getSession(httpRequest, sessionId, f = (err, sessionContext) ->