Do not automatically close TCP connection at end of session. The CPE should, as described in the standard. Fixes 12.

This commit is contained in:
Zaid Abdulla committed 2014-06-07 01:26:48 +03:00
1 parent 2f65ecd3f9
commit 343520f408
1 file changed
-3
-3
View File
@@ -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"