eclipse-agail / agile-core

Source code repository for agile core components
Eclipse Public License 2.0
7 stars 16 forks source link

http websockets are stuck if agile-ble crashes while they are open #98

Closed dpap closed 6 years ago

dpap commented 6 years ago

The only way to recover is to restart the agile http server (agile-core)

dpap commented 6 years ago

3:21:58.631 [qtp1164175787-47] INFO o.e.a.http.ws.AgileWebSocketAdapter - New websocket connection from /127.0.0.1:36150 for /ws/device/bleD037022C2742/step_count_history/subscribe 13:21:58.633 [qtp1164175787-18] INFO o.e.a.http.ws.AgileWebSocketAdapter - New websocket connection from /127.0.0.1:36152 for /ws/device/bleD037022C2742/sleep_history/subscribe

No data

22:07.625 [qtp1164175787-52] INFO o.e.a.http.ws.AgileWebSocketAdapter - closing bleD037022C2742/step_count_history reason:1000/Normal connection closure 13:22:07.638 [qtp1164175787-45] INFO o.e.a.http.ws.AgileWebSocketAdapter - closing bleD037022C2742/sleep_history reason:1000/Normal connection closure 13:22:07.713 [qtp1164175787-18] DEBUG o.eclipse.agail.http.resource.Device - Disconnect on bleD037022C2742 13:22:07.713 [qtp1164175787-18] DEBUG o.eclipse.agail.http.resource.Device - Disconnect on bleD037022C2742

dpap commented 6 years ago

After this error no other data come through http

Exception in thread "Thread-10" org.eclipse.jetty.websocket.api.WebSocketException: RemoteEndpoint unavailable, current state [CLOSED], expecting [OPEN or CONNECTED] at org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:308) at org.eclipse.agail.http.ws.AgileWebSocketAdapter$1.handle(AgileWebSocketAdapter.java:86) at org.eclipse.agail.http.ws.AgileWebSocketAdapter$1.handle(AgileWebSocketAdapter.java:80) at org.freedesktop.dbus.AbstractConnection$2.run(Unknown Source) at org.freedesktop.dbus.AbstractConnection$_workerthread.run(Unknown Source)