flarum / flarum/framework

Settings change breaks realtime service

Open
#5,058 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
PHP
Stars
6.7k
Forks
883
Avg merge
15h 16m
Merged PRs (30d)
73

Description

### Current Behavior

When you change the settings in the realtime extension it seems to act as if the realtime extension was disabled for a brief time and that in turn causes the realtime systemd service to shut down.

### Steps to Reproduce

1. go to admin page and edit the settings of the realtime extension
2. save the new settings
3. see that the websocket connection now fails on the forum
4. see in the logs that the realtime systemd service shut down because it lost connection to the extension

### Expected Behavior

Simply saving the settings should not act like the extension was disabled entirely.

### Screenshots

_No response_

### Environment

- Flarum version: 2.0-rc8

### Output of `php flarum info`

### Possible Solution

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the realtime extension's admin settings save flow and trace how it hands off to the systemd service, using the reported websocket failure and service logs. Done means saving settings keeps the websocket connection working without shutting down the realtime systemd service.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.