Skip to content

Commit

Permalink
Core/Backend - only parse stream results when configd socket could be…
Browse files Browse the repository at this point in the history
… opened. closes #7142

Although this isn't the reason why configd wasn't running, it should not crash either when already sending messages to syslog about the startup issue.
  • Loading branch information
AdSchellevis committed Jan 24, 2024
1 parent 4530da7 commit 9da29cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/mvc/app/library/OPNsense/Core/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function configdRun($event, $detach = false, $timeout = 120, $connect_tim

// read response data
$starttime = time();
while (true) {
while (is_resource($stream)) {
$resp = $resp . stream_get_contents($stream);

if (strpos($resp, $endOfStream) !== false) {
Expand Down

0 comments on commit 9da29cf

Please sign in to comment.