Type error in logger.js

Zaid Abdulla zaid at genieacs.com
Mon May 8 17:36:11 EDT 2017


On Mon, 2017-05-08 at 10:24 -0800, Dan Morphis wrote:
> It is reproducible. It happens after a provision script runs and a
> fault occurs on the device.

I suspect the device is closing the connection before the ACS has a
chance to respond. Try the following patch and let me know what you
get.

diff --git a/lib/cwmp.coffee b/lib/cwmp.coffee
index ef39aee..1535b3e 100644
--- a/lib/cwmp.coffee
+++ b/lib/cwmp.coffee
@@ -606,6 +606,7 @@ onConnection = (socket) ->
   socket.on('close', () ->
     sessions = currentSessions.get(socket)
     for sessionId, sessionContext of sessions
+      sessionContext = Object.assign({}, sessionContext)
       delete sessionContext.httpRequest
       delete sessionContext.httpResponse
       session.serialize(sessionContext, (err, sessionContextString) ->

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list