walkor / channel

Interprocess communication component for workerman
137 stars 49 forks source link

Add support unix domain socket. #9

Closed xpader closed 3 years ago

xpader commented 3 years ago

Add support unix domain socket on local process IPC.

Server:

new Channel\Server('unix:///tmp/workerman-channel.sock');

Client:

Channel\Client::connect('unix:///tmp/workerman-channel.sock');

Use unix domain socket is the better way for local process communication.

xpader commented 3 years ago

对 Workerman 版本的依赖提升至 4.0.12 是因为之前的版本有个问题,当 Worker 停止时,sock 文件仍然存在,导致下次再启动就会报错导致无法启动。 而 4.0.12 修复了这个问题。

walkor commented 3 years ago

Thanks.

xpader commented 3 years ago

回家过年了吗?能不能打个 TAG 啊。。。

walkor commented 3 years ago

已打 v1.1.0

xpader commented 3 years ago

Release 的名字是不是有点不对

walkor commented 3 years ago

确实错了,已改。👍