Session Timeout server.keepAliveTimeout

George Chelidze george.chelidze at magticom.ge
Thu Feb 21 06:16:08 EST 2019


Hi Rick,

I came across the same issue recently and hacked server.coffee to
support new option "KEEP_ALIVE_TIMEOUT". Attached you can find a quick
patch for genieacs-1.2. Use it at your own risk :)

Step by step guide to patch your server:

1. Apply patch to lib/server.coffee:

$ patch -p0 < server.coffee.patch

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- server.coffee.orig    2018-03-29 03:56:49.000000000 +0400
|+++ server.coffee.patched    2019-02-18 09:46:03.396189759 +0400
--------------------------
File to patch: server.coffee
patching file server.coffee

2. rebuild server.js:

$ |npm run compile|

|3. |put the following option to config/config.json:

"KEEP_ALIVE_TIMEOUT" : 20000

4. restart genieacs-cwmp, genieacs-fs, genieacs-nbi

# DONE

|I plan to request merge commit for this.|

|Best regards,|

|George Chelidze
|

||

On 2/20/19 10:57 PM, Rickard Johansson wrote:
> Hi,
>
> Whenever I try to refresh the entire parameter tree I get error
> Session Timeout followed by Invalid Session. I tried
> setting SESSION_TIMEOUT, CONNECTION_REQUEST_TIMEOUT,
> and GET_PARAMETER_NAMES_DEPTH_THRESHOLD without success.
>
> I came across this previous
> question http://lists.genieacs.com/pipermail/users/2017-August/001648.html
> and wanted to try to change http_server_timeout in nodejs as described
> here https://github.com/nodejs/node/issues/13391
> But I can't figure out where to add this configuration, or how to
> start genieacs with the --keepAliveTimeout 20000 option? 
>
> Running ./genieacs-cwmp --keepAliveTimeout 20000 doesn't seem to do
> anything.
>
> Thanks in advance.
>
> Regards,
> Rick
>
> _______________________________________________
> 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/20190221/94947bc8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.coffee.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190221/94947bc8/attachment.bin>


More information about the Users mailing list