Assertion failure in VCL_DelBackend()

Geoff Simmons geoff at uplex.de
Mon Nov 16 12:00:51 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/16/2015 10:53 AM, Dridi Boukelmoune wrote:
> 
> VRT_delete_backend ?

Sure.

> I don't even know how you would delete the backend without
> breaking the type system. If you reference it from a VMOD you
> should get a const struct director and the actual struct backend
> should be hidden behind the priv pointer. You should get enough
> hints that you're not supposed to delete them at this point :p

Yes, I'm taking advantage of the knowledge that dir->priv is a struct
backend, which is indeed a clear sign that I'm peeking behind the
curtain. (I need the delete, so I confess to cheating.)

phk has the public/private separation in the queue, so we'll be OK.
But even without separating the #include's, just a clear statement in
the comments such as we currently have in vsm_int.h and vsl_int.h is
really enough.


Best,
Geoff
- -- 
** * * UPLEX - Nils Goroll Systemoptimierung

Scheffelstraße 32
22301 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWSbdjAAoJEOUwvh9pJNURzUAP/3IxBYqRWW8rKG2Gxe2UBvg8
X9nueS0FrdE4Ul2xZhcDUqkiSOClmAYCwptyWAlD3ZIc1MaeZ+oMLq2jV6vreJYo
HMOQYGvYG/yBgf1jfUUH+Yu3ENoPmtef0uQVXH44UFkv5F/35t0Ud9X6jdqQqInM
rM9qxFV9uChkV+54D/Pg4tNOPKam0I6Z71u3hOgjWSP2g5fmgMJaMuX4T2OK7yTc
mZIbCrz5x8IXjhYeamHKPFpiq23oafmiTeUlbfZmzB4c3wMSgypgkIoBlkiqGu+P
2E5hnMmMql6Af/58jbg578dW+q4obcdIVnnMagmE5LKkXR85JoIsAMw3/aQko+6F
NjV2MgzIM6DDY4CAlEsn7WA3xQTAzXg42RxdjlWoC5bCfxd+jq9spPTraxBcvAp0
9P7XAlS2ATCqhsoTP4sNgixKNBXH7ZWR3UAn+INRfuoVkTk2/OTCYybD1v8bXnM7
IFr1DYdjYLNZrXiJFVc+THOWIOgM4TiRXj1h4ei3FlSwV+5USsYTkzXQgAdqOn00
0+pJTVPLX6mO69maFep/r0xEVI9giPojZqgE94D80me8gMv6MEb5r0X+Z+dtl9V3
A7SRIhQzjOrZEH8A0ZaUQhuJSFYrdQW+M2VK/Kq/dXpl6Jo512GaPT+wCqJ+CIw7
l8Ccoo8RAOAEpl/aeEvI
=El29
-----END PGP SIGNATURE-----



More information about the varnish-dev mailing list