From 343520f408cd30ececf9caa749516c5c3d4abfd2 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Sat, 7 Jun 2014 01:26:48 +0300 Subject: [PATCH] Do not automatically close TCP connection at end of session. The CPE should, as described in the standard. Fixes 12. --- lib/cwmp.coffee | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/cwmp.coffee b/lib/cwmp.coffee index 27e101c..84216ab 100644 --- a/lib/cwmp.coffee +++ b/lib/cwmp.coffee @@ -26,9 +26,6 @@ holdUntil = Date.now() writeResponse = (currentRequest, res) -> data = new Buffer(res.data) - if data.length == 0 - # no more requests. terminate TCP connection - res.headers['Connection'] = 'close' if config.DEBUG_DEVICES[currentRequest.deviceId] dump = "# RESPONSE #{new Date(Date.now())}\n" + JSON.stringify(res.headers) + "\n#{data}\n\n"