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

Changed varnishreload to send commands to varnishadm as a batch #170

Closed
wants to merge 1 commit into from

Conversation

Bilge
Copy link

@Bilge Bilge commented Oct 21, 2023

This fixes #168, but comes with some trade-offs:

  1. We can no longer decorate the output of varnishadm with our own. This is unavoidable as far as I know, with the limitations of Bash.

    I even tried assigning STDOUT to FD3 and sending our decorations using >&3 echo invocations, but this causes all our decorations to either appear before all output emitted by varnishadm, or after, depending on the specific semantics used, but there is no way to interlace our output with that of varnishadm in the intuitive manner we expect (as previously).

  2. Due to a bug in varnishadm, output cannot be suppressed when the commands are successful since any commands so sent via STDIN will always cause varnishadm to exit with 0 (success) status. See: varnishadm always returns 0 (success) when commands sent via STDIN varnish-cache#4012.

@dridi
Copy link
Member

dridi commented Oct 24, 2023

Thank you for your contribution, but for several reasons, some of them mentioned in #168 I'm ruling out this approach for now.

@dridi dridi closed this Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

varnishreload fails for non-trivial (large) VCLs
2 participants