Commit Graph

323 Commits

Author SHA1 Message Date
najoast
5248d443dc Fix typo: Causes an error when resp is false (#1260)
Co-authored-by: zhouyan <zhouyan@onemt.com.cn>
2020-11-24 18:32:28 +08:00
Cloud Wu
e669913b2a log debug console client ip 2020-10-14 17:10:29 +08:00
Cloud Wu
55f207c1d2 fix debug console command : kill 2020-10-14 16:24:04 +08:00
Cloud Wu
b6354a0490 Add skynet.killthread() and debugcommand killtask 2020-10-14 14:12:29 +08:00
Cloud Wu
623d8182eb fix #1246 2020-10-10 18:04:20 +08:00
云风
eaa60ca8dd Update to lua 5.4 (#1174)
* update to lua 5.4.0-rc1

* remove LUA_ERRGCMM

* use age bits for shared

* remove unused lbitlib.c

* use luaV_fastget

* fix #1174

* suspend函数tailcall优化

* 防止没有session导致未调用suspend

* luaH_setint check shared (#1184)

* set LUA_GCGEN by default

* fix #1174 (#1186)

checkshared in sweeplist

* update to lua 5.4 rc2

* update to lua 5.4 rc4

* move skynet.profile into snlua

* Use lua_sethook to interrupt tight loops

* remove lua_checksig

* critical condition for signals

* update to lua 5.4 released

* lua 5.4 bugfix

* update lua bugfix

* fix lua_sharestring (#1224)

* update lua

* update lua 5.4

* update README

* add skynet.select

* add test

* test error & discard

* yield session

* request error has no error message

* add timeout to skynet.select

* bugfix

* for lua 5.4

* new version

* bugfix

* bugfix

* use if instead of while

* make local

* yield in select for

* update lua 5.4.1

* change lua version (#1245)

Co-authored-by: xiaojin <xiaojin@onemt.com.cn>

* update lua version number

Co-authored-by: hong <hongling0@gmail.com>
Co-authored-by: hong <hongling-0@qq.com>
Co-authored-by: 风---自由 <996442717qqcom@gmail.com>
Co-authored-by: xiaojin <xiaojin@onemt.com.cn>
2020-10-10 13:36:59 +08:00
fanlix
f2b1bd7319 stat: add mem stat for jemalloc (#1218)
1, add opts arg for mallctl,dumpinfo
2, collect jemalloc.mem info
3, add debug_console cmd: jmem

Co-authored-by: fx <fx@f.x>
2020-07-22 19:26:39 +08:00
Cloud Wu
ac38fd620b see #1150 2020-02-14 16:38:16 +08:00
fisherman
5527e9e32e 增加 查询错误 提示 2019-12-13 16:15:54 +08:00
Cloud Wu
99a7d745fb use socket_channle:changehost, this may also fix #1130 2019-12-04 15:33:01 +08:00
Sean Feng
9c4e0d5bb7 add senders command in clusterd service 2019-09-29 08:34:43 +08:00
Cloud Wu
e485aae55b This may fix #1080 2019-08-30 10:16:31 +08:00
wudeng
478575436b uniqtask for gm 2019-08-27 21:58:47 +08:00
Cloud Wu
baf5987b0b fix #1062 2019-08-07 10:20:38 +08:00
Cloud Wu
5d26fb3f18 remove ssm and add string id 2019-06-25 10:01:19 +08:00
lwkienun
8e2facbfb8 fix crash of sharedata by incref before sharedated.monitor return cobj to client.
crash occr analise:
1.sharedated.update call many times in a short time(eg:3 times) to change a same name conf value to a->b->c->d.
2.sharedated sending 3 response  to monitoring clients。a->b and b->c and c->d.
3.if b is destroyed and it's memory is reallocated and rewrited when client process the first message a->b, client's call lbox will crash.

solution:
conf b must be keeped before message(a->b) is processed by inc it's ref.
Any return value from host to client must use incref before send to client.
2019-06-15 15:59:37 +08:00
Cloud Wu
47d1047004 sweep garbage strings 2019-06-10 15:11:51 +08:00
Cloud Wu
2bcc691c4d add gc service 2019-06-10 15:11:51 +08:00
Cloud Wu
2ceb642b5d rewrite SSM and clonefunction 2019-06-10 15:11:51 +08:00
hong
db61ec376a clustersender tracetag bug 2019-05-07 10:05:06 +08:00
wudeng
35aa00fb13 Add jemalloc heap profilling in debug console 2019-05-01 20:37:48 +08:00
hong
04e2a36c4a Update service_provider.lua
boot成功后的launch消息异常
2019-04-28 00:18:24 +08:00
wudeng
95cb848772 collectgarbage count change to lua 5.3 2019-04-19 19:09:05 +08:00
Cloud Wu
56d24f46d6 overflow check 2019-04-02 19:15:35 +08:00
Cloud Wu
64e0c4daff calc variance 2019-04-02 19:15:35 +08:00
Cloud Wu
5bf635c75c SSM expanding 2019-04-02 19:15:35 +08:00
Cloud Wu
2011596de0 fix #979 2019-04-02 17:43:24 +08:00
Cloud Wu
062f767bbf fix #967 2019-03-26 23:45:33 +08:00
Cloud Wu
7cb4bbb960 Merge branch 'cluster' 2019-03-26 09:46:57 +08:00
Cloud Wu
ea1affda4c fix #962 2019-03-25 09:42:53 +08:00
Cloud Wu
1c3b563ef8 add wait queue 2019-03-20 19:44:08 +08:00
Cloud Wu
000fa2be3a multi cluster sender 2019-03-20 17:56:39 +08:00
Cloud Wu
1d4308f33a Fix memory leak, See #952 2019-03-06 00:19:51 +08:00
Cloud Wu
34a9979255 check launching address 2018-09-13 18:59:03 +08:00
Cloud Wu
89e7a06deb add more info when service init blocked 2018-09-13 18:27:05 +08:00
Cloud Wu
c839159470 remove netpack from gate service 2018-09-12 11:45:41 +08:00
Cloud Wu
61980c8a1f add socket.netstat 2018-09-07 16:11:27 +08:00
Cloud Wu
c96e20e6c3 add skynet.context and enhance debug console command service 2018-09-06 18:59:33 +08:00
Cloud Wu
c72d4d2134 support string address name, see #883 2018-08-28 15:15:38 +08:00
btt
18a36c171f debug console inject cmd support args 2018-08-23 17:02:06 +08:00
Cloud Wu
143baec319 remove duplicate code 2018-08-13 14:12:15 +08:00
fanyh
168a07d658 sleep time 1s-> 1m, sleep 1s prodcut more message 2018-08-09 19:28:59 +08:00
Cloud Wu
ec2eaa70a4 Merge branch 'master' of https://github.com/cloudwu/skynet 2018-08-03 11:29:12 +08:00
Cloud Wu
d402619347 see #870 2018-08-03 11:28:18 +08:00
Cloud Wu
c101d9df17 see #870 2018-08-03 11:24:14 +08:00
hong
b5653a68ea runnging拼写错误 2018-08-02 21:30:03 +08:00
hong
c9942deaa9 queryname并发导致消息乱序
当有1个以上的co进入queryname,后面的协程有在第1个以后某个的co先执行(第一个已经返回),导致cluster消息乱序
2018-08-02 21:30:03 +08:00
Cloud Wu
3a1556e1fd add new debug command trace 2018-06-08 11:24:27 +08:00
Cloud Wu
e8e38f1682 add session log 2018-05-28 18:16:31 +08:00
Cloud Wu
35b4a09c3d unique cluster trace tag 2018-05-28 18:09:34 +08:00