Contributed to open source
https://github.com/swoole/library/pull/111