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 <[email protected]>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users