robertklep / nefit-easy-http-server

HTTP server to access Nefit/Bosch XMPP backend over HTTP
MIT License
38 stars 15 forks source link

Timeout, no reconnect? #1

Closed gizmocuz closed 8 years ago

gizmocuz commented 8 years ago

Small issue found....

When starting the server, and doing a request, works waiting some minutes, and doing a request results in a timeout but it seems the connection is never rebuild, from this moment there is always a timeout

Is it possible to send a ping to the server every xx seconds when connected, or request some state and/or if there is really a timeout, that the connection is rebuild ?

Error: REQUEST_TIMEOUT at null. (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-core/lib/index.js:109:23) at Timer.listOnTimeout (timers.js:92:15)

robertklep commented 8 years ago

Yeah, I can reproduce. It's not that the connection is gone, it's that the backend stops responding. I'll see if issuing ping-like commands helps keep the connection active.

robertklep commented 8 years ago

Just released v2.1.0 which sends periodic pings that keep the connection active.

gizmocuz commented 8 years ago

Thanks!