I originally reimplemented much of the functionality in the Varnish module in drupalorg_git_varnish because i wanted to pass multiple messages per socket connection, which that module did not support at the time. it now does, according to #1089878: Make it possible to execute more than one command in one connection.. and, given that my logic seems to be buggy and causes some weird counting errors (seems like an OBO type situation), it'd be great to rip out my custom connection logic and just rely on theirs.

Comments

sdboyer’s picture

Assigned: Unassigned » sdboyer

and yeah, assigning to me.

drumm’s picture

Issue tags: +drupal.org D7

This seems like something that would be good to get done so we have less code to bring to D7.

drumm’s picture

Issue tags: +git

git tag

tvn’s picture

tag did not stick

marvil07’s picture

Assigned: sdboyer » Unassigned
Status: Active » Needs review
StatusFileSize
new9.63 KB

This should be working, but I have not yet tested it.

Update: Notice that this patch removes the drupalorg_git_varnish_connection_info variable(which was default to 127.0.0.1:6082), so the varnish control host url information should now live at varnish module settings instead. Basically set varnish_control_terminal(defaults to 127.0.0.1:6082) variable to the right value.

marvil07’s picture

I have just tested this on git7site with varnish latest stable release, everything seems to be functioning correctly. I would say to go and add it to upstream.

About the variable, drupalorg_git_varnish_connection_info, is not defined on settings.php, so it's not in bzr. It is defined only on settings.local.php, and the values are the same as varnish module defaults, so I think we do not need to define any new variable for now unless productions settings.local.php has a value set for the drupalorg_git_varnish_connection_info, in which case we need to set varnish_control_terminal variable.

Notice that for deploying this we we'll need also to add varnish module to bzr.

marvil07’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Needs review » Fixed

OK, added, btw it was the D7 version.

drumm’s picture

Status: Fixed » Needs work

Please also add a drupalorg_git_varnish_update_N() which does module_enable(array('varnish')) (and double check that syntax).

marvil07’s picture

Status: Needs work » Fixed
StatusFileSize
new1.18 KB

Thanks for the comment, it's now added.

Patch ftr.

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 050fd9c on 7.x-3.x, 7.x-3.x-dev by marvil07:
    Issue #1551292: Interact with varnish via varnish module on...
  • Commit 5997547 on 7.x-3.x, 7.x-3.x-dev by marvil07:
    Issue #1551292 follow-up: Enable varnish module for...