profile
viewpoint
Cinlen Chen chenxinlong Xiamen, China Clear is better than clever

issue commentfacebook/php-graph-sdk

Still using v2.10?

@tommy-muehle If I specifies the $graphVersion as 3.3 while initialize the FacebookRequest class but the default version (2.10), does php-graph-sdk 5.7 works fine(compatiable) with all 3.3 graph APIs ?

elegos

comment created time in a day

startedloveshell/ngx_lua_waf

started time in a day

issue commentcoturn/coturn

What's the max allocation num at the same time on the server ?

Can anyone help me with this problem

chenxinlong

comment created time in 3 days

startedDIYgod/RSSHub

started time in 5 days

startedheidi-ann/distributed-consensus-reading-list

started time in 5 days

issue commentvernemq/vernemq

no_matching_hook_found on VerneMQ 1.7.1

Hi, This problem arises again. Since it comes unpredictablely, so I can't find a way to reproduce it.

chenxinlong

comment created time in 7 days

startedlibra/libra

started time in 8 days

issue openedcoturn/coturn

What's the max allocation num at the same time on the server ?

Hi, according to the content mentioned in rfc5766 page-7 :

Each allocation on the server belongs to a single client and has exactly one relayed transport address that is used only by that allocation. Thus, when a packet arrives at a relayed transport address on the server, the server knows for which client the data is intended.

The client may have multiple allocations on a server at the same time.

Let's set the turnserver.conf as :

min-port=49152
max-port=65535

total-quota=20000

Since one relayed transport address is used only by that allocation , then the max allocation num at the same time is the max relayed transport address num which is :

65535 - 49152 = 16383

And "client may have multiple allocations on a server at the same time", so say turn client has 3 allocations at the same time, than the max client num at the same time turnserver can serve is :

(65535 - 49152)/3 = 5461

If the allocate request carry the EVEN-PORT attribute, then the result is a half of 5461.

So,

  1. Am I correct in the calculation above ? Please correct me if I'm wrong.
  2. If I did this calculation right, then the total-quota in turnserver.conf is always less than/equals to maxport - minport ?

created time in 10 days

startedopen-ai-robot/awesome-dji-robomaster

started time in 11 days

startedvladimirvivien/learning-go

started time in 14 days

startedgoogle/mtail

started time in 19 days

startedAltinity/clicktail

started time in 19 days

issue commentgoogle/recaptcha

Recaptcha v3 always returns a 0.1 score

Similar problem here. When I specify the action parameter as homepage, I always got a 0.9 score with chrome, but under safari, it's a 0.1.

SeriaWei

comment created time in 20 days

startedlebinh/ngxtop

started time in 20 days

startedmicro/go-micro

started time in 23 days

startedalgorithm-visualizer/algorithm-visualizer

started time in 23 days

startedshirou/gopsutil

started time in 24 days

startedpkg/errors

started time in a month

starteddubbo/go-for-apache-dubbo

started time in a month

startedeolinker/EOLINKER-GoKu-API-Gateway-CE

started time in a month

issue commentvernemq/vernemq

Lua script not triggered

Thanks for the reply

chenxinlong

comment created time in a month

issue commentvernemq/vernemq

Lua script not triggered

So if the erlang ETS stored the pub/sub acl, then the auth_on_publish/auth_on_subscribe hook function is actually triggered inside the erlang code , right ?

chenxinlong

comment created time in a month

startedKong/kong

started time in a month

issue commentPicGo/vs-picgo

对 vscode 界面截图无法上传

对 vscode 编辑器进行截图,然后 cmd+opt+u,console 里显示内容如下图: image

chenxinlong

comment created time in a month

issue openedPicGo/vs-picgo

对 vscode 界面截图无法上传

Describe the bug

mac 下对 vscode 编辑器窗口进行截图,cmd+opt+u 右下角会弹出正在上传,然后没有任何上传结果。试了 smms 和七牛都是一样。

当截图内容不是 vscode 编辑器的时候可以正常上传,比如截浏览器的内容就是正常的。

To Reproduce

重现方式同上述 description。

System information

  • OS: mac OSX
  • Version 10.13.6

VSCode information

安装插件之后,使用默认配置(即无修改任何 picgo 配置)。

  • vs-picgo 2.0.4

created time in a month

startedelarity/advanced-php

started time in a month

startedgosuri/uiprogress

started time in a month

startedProtonMail/gopenpgp

started time in a month

startedrvirding/luerl

started time in a month

startedledgetech/lua-resty-http

started time in a month

startedsyndtr/goleveldb

started time in 2 months

startedurfave/cli

started time in 2 months

issue commentvernemq/vernemq

Lua script not triggered

Thx

chenxinlong

comment created time in 2 months

issue commentvernemq/vernemq

Lua script not triggered

Hi, thanks for your reply. It works after I commented the cache_insert. And there's another question which is where are these caches stored and when will these caches expire ?

chenxinlong

comment created time in 2 months

issue openedvernemq/vernemq

Lua script not triggered

Environment

  • VerneMQ Version:1.7.1

  • OS:CentOS 7

  • Erlang/OTP version (if building from source):NA

  • VerneMQ configuration : see vernemq.conf.txt

  • Cluster size/standalone:standalone

Expected behavior

I've reedit the redis.lua

require "auth/auth_commons"

function my_auth_on_register(reg)
    print("=====reg")
    if reg.username ~= nil and reg.password ~= nil then
        key = json.encode({reg.mountpoint, reg.client_id, reg.username})
        res = redis.cmd(pool, "get " .. key)
        if res then
            res = json.decode(res)
            if res.passhash == bcrypt.hashpw(reg.password, res.passhash) then
                cache_insert(
                    reg.mountpoint, 
                    reg.client_id, 
                    reg.username,
                    res.publish_acl,
                    res.subscribe_acl
                    )
                return true
            end
        end
    end
    return false
end

function my_auth_on_publish(pub)
    print("=====pub")
    return true
end


pool = "auth_redis"
config = {
    pool_id = pool
}


redis.ensure_pool(config)
hooks = {
    auth_on_register = my_auth_on_register,
    auth_on_publish = my_auth_on_publish,
    auth_on_subscribe = auth_on_subscribe,
    -- on_unsubscribe = on_unsubscribe,
    -- on_client_gone = on_client_gone,
    -- on_client_offline = on_client_offline,

    -- auth_on_register_m5 = auth_on_register,
    -- auth_on_publish_m5 = my_auth_on_publish,
    -- auth_on_subscribe_m5 = auth_on_subscribe_m5,
}

The enabled plugins as pics below : image

vernemq.conf as : vernemq.conf.txt

After restart the vernemq and connected to it, the erlang.log output ======reg as expectly : image

And after I publish a message, the erlang.log outputs ======pub.

Actual behaviour

But there's nothing about =====pub in the erlang.log after I published a message. BTW, message was normally delivered.

image

created time in 2 months

issue openedvernemq/vernemq

Calling endpoint failed due to econnrefused

Environment

  • VerneMQ Version:1.7.1

  • OS:CentOS7

  • Erlang/OTP version (if building from source): N/A

  • VerneMQ configuration : vernemq.conf.txt

  • Cluster size/standalone: standalone

Expected behavior

Auth using redis, I've reedit the /usr/share/vernemq/lua/auth/redis.lua and restart the vernemq using service vernemq restart , the modification of redis.lua as follow :

// ...... nothing changed

function my_auth_on_publish(pub)
    print("=========test")
    return true
end

// ...... nothing changed

hooks = {
    auth_on_register = auth_on_register,
    auth_on_publish = my_auth_on_publish,
    auth_on_subscribe = auth_on_subscribe,
    on_unsubscribe = on_unsubscribe,
    on_client_gone = on_client_gone,
    on_client_offline = on_client_offline,

    auth_on_register_m5 = auth_on_register,
    auth_on_publish_m5 = my_auth_on_publish,
    auth_on_subscribe_m5 = auth_on_subscribe_m5,
}

When I connected to the vernemq and try to publish a message, the latest erlang.log output :

(VerneMQ@127.0.0.1)1> ==========test(VerneMQ@127.0.0.1)1>

Actual behaviour

When I connected to the vernemq and try to publish a message, the console.log output :

2019-05-09 19:52:25.942 [error] <0.504.0>@vmq_webhooks_plugin:call_endpoint:605 calling endpoint failed due to econnrefused

And there's no content with =========test in any of the vernemq logs(error, console. erlang, etc), but the publishment was delivered successful.

created time in 2 months

startedrvirding/luerl

started time in 2 months

startederlio/vmq_diversity

started time in 2 months

startedgoproxyio/goproxy

started time in 2 months

startedsql-machine-learning/sqlflow

started time in 2 months

startedCyC2018/CS-Notes

started time in 2 months

startedrakyll/hey

started time in 2 months

startedopen-ai-robot/NVIDIA-JetBot-Diy

started time in 2 months

startedmmcloughlin/geohash

started time in 2 months

startedgopherchina/conference

started time in 2 months

startedAlikhll/golang-developer-roadmap

started time in 2 months

startedsjwhitworth/golearn

started time in 2 months

startedEDDYCJY/blog

started time in 2 months

issue commentvernemq/vernemq

no_matching_hook_found on VerneMQ 1.7.1

This problem appeared after a high server memory usage caused by another process, before this, the vmq service is normal.

The erl_crash.dump.log may help.

chenxinlong

comment created time in 2 months

issue openedvernemq/vernemq

no_matching_hook_found on VerneMQ 1.7.1

Environment

  • VerneMQ Version: 1.7.1
  • OS: centos 7
  • VerneMQ configuration (vernemq.conf) or the changes from the default
  • Cluster size/standalone: 3 nodes

Behavior

This issue may refers to #1073 , but it happended on VerneMQ 1.7.1.

Vernemq.conf

Related content :

allow_anonymous = off 
plugins.vmq_passwd = off 
plugins.vmq_acl = off
plugins.vmq_diversity = on 
plugins.vmq_webhooks = on
vmq_diversity.auth_redis.enabled = on

Detail logs

Some sensitive content was removed.

console.log error.log crash.log erl_crash.dump.log

created time in 2 months

startedqiniu/cerl

started time in 2 months

startedtmrts/go-patterns

started time in 2 months

startedjhuangtw-dev/xg2xg

started time in 2 months

startedmix-php/mix

started time in 3 months

startedopenresty/openresty-systemtap-toolkit

started time in 3 months

startedvugu/vugu

started time in 3 months

startedlib-pku/libpku

started time in 3 months

startedAgoraIO/Flutter-SDK

started time in 3 months

startedcnlh/nps

started time in 3 months

startedjehiah/json2csv

started time in 3 months

starteddennwc/dom

started time in 3 months

startedlni/dragonboat

started time in 3 months

startedchai2010/awesome-wasm-zh

started time in 3 months

issue closedcoturn/coturn

The log does not print date and pid info

The log output like pics below : image

There's no date and pid info found.

turnserver config as follow :

#no-stdout-log
#log-file=/var/tmp/turn.log
...
log-file=stdout
...
#syslog
#simple-log

Supervisor config as follow :

command = /path/to/turnserver -c /etc/turnserver/turnserver.conf -v
...
stdout_logfile = /var/log/supervisor/turnserver.info.log
stdout_logfile_maxbytes = 100MB
stdout_logfile_backups = 5
stderr_logfile = /var/log/supervisor/turnserver

I'v tried the -V option, but still doesn't work. Is there any way to deal with it ? Or I make a mistake on configuration.

closed time in 3 months

chenxinlong

startedbarryvdh/laravel-ide-helper

started time in 3 months

more