Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Websocket disconnects leave stuff running #8

Closed
tkurki opened this issue Apr 10, 2015 · 2 comments
Closed

Websocket disconnects leave stuff running #8

tkurki opened this issue Apr 10, 2015 · 2 comments

Comments

@tkurki
Copy link
Member

tkurki commented Apr 10, 2015

Java server log shows stuff being "output" to websocket even after the browser window and the whole browser that opened a websocket has been closed.

@tkurki
Copy link
Member Author

tkurki commented Apr 10, 2015

[) thread #4 - seda://commonOut] FullToDeltaProcessor           DEBUG Converted to delta :{"context":"vessels.motu","updates":[{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"navigation.position","value":{"longitude":23.48778391,"latitude":60.03625132}},{"path":"navigation.magneticVariation","value":7.9}],"source":"vessels.motu.sources.nmea.0183.GLL"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"navigation.speedOverGround","value":3.26062918}],"source":"vessels.motu.sources.nmea.0183.VHW"},{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"environment.depth.belowTransducer","value":26.6}],"source":"vessels.motu.sources.nmea.0183.DBT"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.speedApparent","value":2.675088}],"source":"vessels.motu.sources.nmea.0183.MWV"},{"timestamp":"2015-04-10T15:44:36.878Z","values":[{"path":"environment.wind.speedTrue","value":2.3},{"path":"environment.wind.directionTrue","value":276.55}],"source":"motu"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.angleApparent","value":273.0}],"source":"vessels.motu.sources.nmea.0183.MWV"},{"timestamp":"2015-04-10T15:49:52.891Z","values":[{"path":"sources.nmea.0183.HDM","value":"$IIHDM,,M*0C"},{"path":"sources.nmea.0183.VHW","value":"$IIVHW,,T,,M,06.35,N,11.76,K*54"},{"path":"sources.nmea.0183.DBT","value":"$IIDBT,087.26,f,026.60,M,014.37,F*29"},{"path":"sources.nmea.0183.HDT","value":"$IIHDT,,T*0C"},{"path":"sources.nmea.0183.GSV","value":"$GPGSV,,,,,,,,,,,,,,,,,,,*79"},{"path":"sources.nmea.0183.VTG","value":"$IIVTG,205.11,T,205.11,M,6.10,N,,,D*63"},{"path":"sources.nmea.0183.GLL","value":"$GPGLL,6002.159,N,02329.252,E,102952,A,D*49"},{"path":"sources.nmea.0183.ZDA","value":"$GPZDA,102952,,,,00,*45"},{"path":"sources.nmea.0183.MWV","value":"$IIMWV,273,T,05.20,N,A*24"}],"source":"unknown"}]}
[) thread #4 - seda://commonOut] FullToDeltaProcessor           DEBUG Outputting :Message: {"context":"vessels.motu","updates":[{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"navigation.position","value":{"longitude":23.48778391,"latitude":60.03625132}},{"path":"navigation.magneticVariation","value":7.9}],"source":"vessels.motu.sources.nmea.0183.GLL"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"navigation.speedOverGround","value":3.26062918}],"source":"vessels.motu.sources.nmea.0183.VHW"},{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"environment.depth.belowTransducer","value":26.6}],"source":"vessels.motu.sources.nmea.0183.DBT"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.speedApparent","value":2.675088}],"source":"vessels.motu.sources.nmea.0183.MWV"},{"timestamp":"2015-04-10T15:44:36.878Z","values":[{"path":"environment.wind.speedTrue","value":2.3},{"path":"environment.wind.directionTrue","value":276.55}],"source":"motu"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.angleA... [Body clipped after 1000 chars, total length is 1788]
[) thread #4 - seda://commonOut] OutputFilterProcessor          DEBUG Processing, class=class mjson.Json$ObjectJson
[) thread #4 - seda://commonOut] OutputFilterProcessor          DEBUG Outputting:{breadcrumbId=ID-localhost-54329-1428680674324-0-88064, firedTime=Fri Apr 10 18:49:53 EEST 2015, OUTPUT_TYPE=OUTPUT_WS, SIGNALK_FORMAT=delta, websocket.connectionKey=3ceaaba1-a113-4000-93e3-cffb73089251}
[) thread #4 - seda://commonOut] OutputFilterProcessor          DEBUG Outputting:Message: {"context":"vessels.motu","updates":[{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"navigation.position","value":{"longitude":23.48778391,"latitude":60.03625132}},{"path":"navigation.magneticVariation","value":7.9}],"source":"vessels.motu.sources.nmea.0183.GLL"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"navigation.speedOverGround","value":3.26062918}],"source":"vessels.motu.sources.nmea.0183.VHW"},{"timestamp":"2015-04-10T15:49:52.893Z","values":[{"path":"environment.depth.belowTransducer","value":26.6}],"source":"vessels.motu.sources.nmea.0183.DBT"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.speedApparent","value":2.675088}],"source":"vessels.motu.sources.nmea.0183.MWV"},{"timestamp":"2015-04-10T15:44:36.878Z","values":[{"path":"environment.wind.speedTrue","value":2.3},{"path":"environment.wind.directionTrue","value":276.55}],"source":"motu"},{"timestamp":"2015-04-10T15:49:52.892Z","values":[{"path":"environment.wind.angleA... [Body clipped after 1000 chars, total length is 1788]```

@rob42
Copy link
Contributor

rob42 commented Apr 11, 2015

Fixed, at least for websockets. May still hold old http session info if all sockets are closed, but page remains open

@rob42 rob42 closed this as completed Apr 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants