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
--- server.coffee.orig	2018-03-29 03:56:49.000000000 +0400
+++ server.coffee.patched	2019-02-18 09:46:03.396189759 +0400
@@ -110,6 +110,11 @@
   server = require('http').createServer(listener)
   server.on('connection', onConnection) if onConnection?
 
+keepAliveTimeout = config.get('KEEP_ALIVE_TIMEOUT')
+defaultKeepAliveTimeout = config.getDefault('KEEP_ALIVE_TIMEOUT')
+if keepAliveTimeout != defaultKeepAliveTimeout
+  server.keepAliveTimeout = keepAliveTimeout
+
 db.connect((err) ->
   throw err if err
   cache.connect((err) ->

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

Reply via email to