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:
1 parent
2f65ecd3f9
commit
343520f408
1 file changed
-3
@@ -26,9 +26,6 @@ holdUntil = Date.now()
|
|||||||
|
|
||||||
writeResponse = (currentRequest, res) ->
|
writeResponse = (currentRequest, res) ->
|
||||||
data = new Buffer(res.data)
|
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]
|
if config.DEBUG_DEVICES[currentRequest.deviceId]
|
||||||
dump = "# RESPONSE #{new Date(Date.now())}\n" + JSON.stringify(res.headers) + "\n#{data}\n\n"
|
dump = "# RESPONSE #{new Date(Date.now())}\n" + JSON.stringify(res.headers) + "\n#{data}\n\n"
|
||||||
|
|||||||
Reference in new issue
Block a user