martin-helmich / go-varnish-client Goto Github PK
View Code? Open in Web Editor NEWGo library to programmatically access the Varnish administration port
License: MIT License
Go library to programmatically access the Varnish administration port
License: MIT License
Dear Martin,
first of all: great project, thanks! I tried lately to use the module talking to varnish 7.3 and stumbled upon this problem
I0525 06:34:18.514868 1 roundtrip_impl.go:124] writing to server: vcl.state
I0525 06:34:18.514878 1 roundtrip_impl.go:19] writing 10 bytes to server: 76636c2e737461746520 ("vcl.state ")
I0525 06:34:18.514904 1 roundtrip_impl.go:19] writing 30 bytes to server: 2272656c6f61645f32303233303532355f3036333431375f343437303022 ("\"reload_20230525_063417_44700\"")
I0525 06:34:18.514921 1 roundtrip_impl.go:19] writing 1 bytes to server: 20 (" ")
I0525 06:34:18.514935 1 roundtrip_impl.go:19] writing 6 bytes to server: 22636f6c6422 ("\"cold\"")
I0525 06:34:18.514942 1 roundtrip_impl.go:19] writing 1 bytes to server: 0a ("\n")
I0525 06:34:18.514947 1 roundtrip_impl.go:156] request written; waiting for response
I0525 06:34:18.515005 1 roundtrip_impl.go:58] read 13 bytes of header
I0525 06:34:18.515014 1 roundtrip_impl.go:59] header: "100 94 \n"
I0525 06:34:18.515017 1 roundtrip_impl.go:71] received message from Varnish server: response code 100, body length 94
I0525 06:34:18.515020 1 roundtrip_impl.go:80] 95 bytes read
I0525 06:34:18.515026 1 roundtrip_impl.go:81] message body: "Unknown request.\nType 'help' for more info.\nSyntax Error: Missing separator between arguments\n\n"
I0525 06:34:18.515036 1 watch.go:195] error while changing state of VCL reload_20230525_063417_44700: error while setting VCL state (code 100): Unknown request.
Type 'help' for more info.
Syntax Error: Missing separator between arguments
This impacts at least the SetVCLState
and DefineInlineVCL
calls. IMO this is a varnish bug introduced with varnishcache/varnish-cache@a2ab44d#diff-a1503af454177018bb731c118bd8dad34c34d94a93c2605e6a3ee3ab17bfe686R194 because it seems varnish wrongly detects a double quote as separator now instead of the space although go-varnish-client is actually escaping the arguments correctly AFAICS also from the debug log above.
Solutions:
None of both are really a good fix. But at least I wanted to document it here.
Cheers,
Robert
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.