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

Handle UNIX domain sockets correctly in memcache & memcached extensions #2450

Closed
wants to merge 1 commit into from

Conversation

atdt
Copy link
Contributor

@atdt atdt commented Apr 14, 2014

  • Memcache::addServer checks for 'unix://' to determine if the host argument
    represents is a UNIX domain socket. HHVM's version checked for a leading '/'.
  • Memcached::addServer checks for a leading '/' to determine if the host
    argument is a UNIX domain socket. HHVM's version did not handle UNIX domain
    sockets at all.

This patch adds UNIX domain socket support to Memcached::addServer, and it
corrects the handling of the host argument in Memcache::addServer.

Fixes #1375.

* Memcache::addServer checks for 'unix://' to determine if the host argument
  represents is a UNIX domain socket. HHVM's version checked for a leading '/'.
* Memcached::addServer checks for a leading '/' to determine if the host
  argument is a UNIX domain socket. HHVM's version did not handle UNIX domain
  sockets at all.

This patch adds UNIX domain socket support to Memcached::addServer, and it
corrects the handling of the host argument in Memcache::addServer.

Fixes facebook#1375.
@JoelMarcey
Copy link
Contributor

@atdt Hi. I have pulled this in for review internally. Thanks!

Internal phabricator diff: D1316665

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.

Memcached doesn't work over unix socket
2 participants