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

其实 php自带的stream已经 实现持久化了。 #1

Open
mlboy opened this issue Nov 16, 2017 · 0 comments
Open

其实 php自带的stream已经 实现持久化了。 #1

mlboy opened this issue Nov 16, 2017 · 0 comments

Comments

@mlboy
Copy link

mlboy commented Nov 16, 2017

其实 stream已经 实现持久化了。
$socket = stream_socket_client('tcp://host', $errorno, $errorstr, $timeout, STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT);

观察源码其内部也调用了stream_*系列函数 加上persistent resource实现

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

No branches or pull requests

1 participant