Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket Server stops sending message when the pipeline instantiating it is stopped and restarted even without any modification #2890

Closed
FabriceHansen opened this issue May 21, 2024 · 0 comments · Fixed by #2893
Assignees
Labels
bug Something isn't working
Milestone

Comments

@FabriceHansen
Copy link

Apache StreamPipes version

dev (current development state)

Affected StreamPipes components

Backend

What happened?

I am oublishing some OPC UA info on a Web Socket.
The Websocket Server stops sending message when the pipeline instantiating it is stopped and restarted even without any modification. I have to redeploy Stream pipe and reimport everything than it works again for the first run of the pipeline instantiating the Web Socket. If I stop/start it again, I have to redeploy again...

How to reproduce?

Instantiate a WS in a pipleline together with an OPC UA Data adapter and a Projection Data Processor to select what data to send to WS.
Run the pipeline
Check it is sending messages with wscat -c ws://xxx.xxx.xxx.xxx:xxx
Stop and start the pipeline and check again with wscat -c ws://xxx.xxx.xxx.xxx:xxx

Expected behavior

It seems that the pipeline is loosing the connection to the WS once stopped

Additional technical information

No response

Are you willing to submit a PR?

Yes, I am willing to submit a PR!

@FabriceHansen FabriceHansen added the bug Something isn't working label May 21, 2024
@bossenti bossenti added this to the 0.97.0 milestone May 22, 2024
@dominikriemer dominikriemer self-assigned this May 22, 2024
@dominikriemer dominikriemer linked a pull request May 22, 2024 that will close this issue
@dominikriemer dominikriemer modified the milestones: 0.97.0, 0.95.0 May 22, 2024
dominikriemer added a commit that referenced this issue May 23, 2024
* fix(#2890): Properly cleanup WS connection

* Replace deprecated asset type

* Fix checkstyle

* fix(#2893): Fix checkstyle

---------

Co-authored-by: Philipp Zehnder <[email protected]>
dominikriemer added a commit that referenced this issue May 23, 2024
* fix(#2890): Properly cleanup WS connection

* Replace deprecated asset type

* Fix checkstyle

* fix(#2893): Fix checkstyle

---------

Co-authored-by: Philipp Zehnder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants