Giter VIP home page Giter VIP logo

component's People

Contributors

ar026 avatar chenjing0521 avatar evalor avatar kajweb avatar kiss291323003 avatar player626 avatar runstp avatar tioncico avatar voocel avatar willove avatar xiaocaigua avatar xuanyanwow avatar xuesilf avatar yaphats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

component's Issues

为什么用了两个分号?

rt
强迫症表示可以保留一个吗。。。😊
image

文件:vendor\easyswoole\component\src\Process\Manager.php 94行

where is EasySwoole\Component\Pool\PoolManager ?

I can not find it in git's source code.

thrown in /data/php-src/automan/EasySwooleEvent.php on line 29
[2020-09-05 09:38:06][debug][error]:[Uncaught Error: Class 'EasySwoole\Component\Pool\PoolManager' not found in /data/php-src/automan/EasySwooleEvent.php:29

关于Invoker中计时器alarm 和连接池中swoole_timer_tick冲突的问题

1
2

这两个方法中的方法会冲突导致Invoker中的防止超时的函数有警告作物导致失效,但是函数体中的回调会执行

警告错误:easyswoole/component/src/Invoker.php][line:24]Swoole\Process::alarm(): cannot use both 'timer' and 'alarm' at the same time.

官方给出的错误原因是,linux底层不允许一个进程中有两个计时器,这该怎么解决呢?使用了Pool 难道就不能使用Invoker

版本3.1.18 提示 Openssl is deprecated

版本3.1.18 提示
EasySwoole\Component\Openssl is deprecated ,use EasySwoole\Component\Crypto instead
实际上Crypto 这里面是空类, 还没达到可用状态。
(由于在开发环境里安装的早期的3.1.18版本, 当部署到服务器时拉取3.1.18版本貌似内容有变,
版本定在了3.1.18,所以暂不升级ES。)

TableManager add方法 返回 $this

  /**
     * @param $name
     * @param array $columns    ['col'=>['type'=>Table::TYPE_STRING,'size'=>1]]
     * @param int $size
     */
    public function add($name,array $columns,$size = 1024):self
    {
        if(!isset($this->list[$name])){
            $table = new Table($size);
            foreach ($columns as $column => $item){
                $table->column($column,$item['type'],$item['size']);
            }
            $table->create();
            $this->list[$name] = $table;
        }
        return $this;
    }

   TableManager::getInstance()
            ->add('user',
                [
                    'token' => ['type' => Table::TYPE_STRING, 'size' => 32],
                    'user_id' => ['type' => Table::TYPE_STRING, 'size' => 32],
                    'fd' => ['type' => Table::TYPE_INT, 'size' => 10],
            ])
            ->add('message', [
                'send_msg' => ['type' => Table::TYPE_STRING, 'size' => 200],
                'take_msg' => ['type' => Table::TYPE_STRING, 'size' => 200],
                'send_user_id' => ['type' => Table::TYPE_INT, 'size' => 1]
            ]);

关于Swoole Table

不太建议过多使用Swoole Table,或在 component 作出一些限制

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.