-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add support for unix:// transport #78
Conversation
While this may look good functionally, it unfortunately lacks documentation and tests. I've prepared a very much similar PR, do you feel like updating or should I file mine? 👍 |
I added some test, but hhvm fails. I will try to fix it tomorrow. |
Ok, i made ugly hack for hhvm because there is a bug in hhvm (see facebook/hhvm#7733). Tomorrow I will add some info in readme about the unix sockets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm currently undecided if it makes sense to have this in the Server
or if we should move this to a dedicated UnixServer
. What do you think?
//if unix socket we must delete socket file | ||
if ($metaData['stream_type'] == 'unix_socket') { | ||
//ugly hhvm hack see bug https://github.com/facebook/hhvm/issues/7733 | ||
unlink(rtrim($socket_path,":")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this workaround only be applied to affected versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will prepare new PR for this
fclose($this->master); | ||
|
||
//if unix socket we must delete socket file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this probably makes sense in most cases, but is this really a "must"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to delete socket file, because the socket file will remain after server close.
Simplify test suite by relying on React's secure TLS server
This change adds support for unix domain socket transport for using unix:// for connections.