Type error in logger.js

Dan Morphis dan at milkcarton.com
Mon May 8 18:14:20 EDT 2017


That appears to have fixed the issue.

On Mon, May 8, 2017 at 1:36 PM, Zaid Abdulla <zaid at genieacs.com> wrote:

> 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>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170508/c15ce19b/attachment.html>


More information about the Users mailing list