conwetlab / ngsi-proxy

Proxy allowing receiving notifications from Orion Context Broker on browser environments
GNU Affero General Public License v3.0
8 stars 10 forks source link

Changes default and minimum reconnection timeout #26

Open oxixes opened 7 months ago

oxixes commented 7 months ago

Reduces the minimum reconnection timeout to 5 seconds, and the default one to 30 seconds.

24h (altough it actually was 24 minutes) is a lot when most clients will just connect for shorts spans of time, as that will prevent the context broker from realizing that it should delete the subscription if the client didn't manage to delete it itself (for example, when the browser crashes).

A much more reasonable default timeout is 30 seconds, with a minimum of 5 seconds.