Forgot to attach config.coffee.patch to my previous post. Sorry for that.

Best regards,

George Chelidze

On 2/21/19 3:16 PM, George Chelidze wrote:
>
> 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
>> [email protected]
>> http://lists.genieacs.com/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
--- config.coffee.orig	2019-02-21 15:34:09.337142807 +0400
+++ config.coffee.patched	2019-02-21 15:34:00.345075289 +0400
@@ -68,6 +68,7 @@
   DATETIME_MILLISECONDS : {type: 'bool', default: true},
   BOOLEAN_LITERAL : {type: 'bool', default: true},
   CONNECTION_REQUEST_ALLOW_BASIC_AUTH: {type: 'bool', default: false},
+  KEEP_ALIVE_TIMEOUT: {type: 'int', default: 5000},
   MAX_COMMIT_ITERATIONS : {type : 'int', default: 32},
 
   # XML configuration

_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to