telefonicaid / fiware-sth-comet

A component of the FIWARE ecosystem in charge of managing historical and aggregated time series context information
https://fiware-sth-comet.rtfd.io
GNU Affero General Public License v3.0
27 stars 28 forks source link

About the keepAliveTimeout setting value of the node server (hapi) #639

Open yu-fukusako opened 1 week ago

yu-fukusako commented 1 week ago

I think the keepAliveTimeout setting value of the node server (hapi) is the default. With this setting, the session will be disconnected from the STH-Comet side at a timing the client does not expect. (In fact, a similar issue has been reported with the hapi issue. https://github.com/hapijs/hapi/issues/3738

Is it possible to set keepAliveTimeout at startup? For example, set via environment variables or command line

AlvaroVega commented 1 week ago

IMHO some code should be added to https://github.com/telefonicaid/fiware-sth-comet/blob/master/lib/server/sthServer.js to allow set keepAliveTimeout for hapi as a custom configuration value. Currently sth uses hapi v16, so I'm not sure if is implemented