<div dir="ltr">That appears to have fixed the issue.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 8, 2017 at 1:36 PM, Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 2017-05-08 at 10:24 -0800, Dan Morphis wrote:<br>
> It is reproducible. It happens after a provision script runs and a<br>
> fault occurs on the device.<br>
<br>
</span>I suspect the device is closing the connection before the ACS has a<br>
chance to respond. Try the following patch and let me know what you<br>
get.<br>
<br>
diff --git a/lib/cwmp.coffee b/lib/cwmp.coffee<br>
index ef39aee..1535b3e 100644<br>
--- a/lib/cwmp.coffee<br>
+++ b/lib/cwmp.coffee<br>
@@ -606,6 +606,7 @@ onConnection = (socket) -><br>
   socket.on('close', () -><br>
     sessions = currentSessions.get(socket)<br>
     for sessionId, sessionContext of sessions<br>
+      sessionContext = Object.assign({}, sessionContext)<br>
       delete sessionContext.httpRequest<br>
       delete sessionContext.httpResponse<br>
       session.serialize(<wbr>sessionContext, (err, sessionContextString) -><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Zaid Abdulla <<a href="mailto:zaid@genieacs.com">zaid@genieacs.com</a>><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>