云风
172278bc8f
check conflict ( #1798 )
...
* rewind check conflict
* Use auxsend instead of c.send
2023-09-28 13:48:35 +08:00
Cloud Wu
c178c398b9
don't report error when session == 0
2023-07-31 21:31:21 +08:00
Cloud Wu
93ea565bcb
Improve README, See #1785
2023-07-31 10:19:40 +08:00
华仔
bb90b64c3f
websocket添加is_close方法 ( #1781 )
...
* websocket添加is_close方法
* 代码优化
2023-07-19 20:01:41 +08:00
Whislly
c6a8976bc3
findOne优化 ( #1772 )
...
1、直接调用runCommand方法
2、增加"limit": 1参数,限制只返回一条数据
2023-07-10 12:29:16 +08:00
Whislly
074426e273
pipline方法优化 ( #1771 )
...
1、增加sort_statge、skip_statge、limit_statge、count_statge替换临时table
2、改成for i = 1, 2 do self.__pipeline[len + i] = nil end清除老数据
2023-07-07 20:11:36 +08:00
Whislly
b402837628
聚合方法返回游标对象 ( #1769 )
...
* 聚合方法返回游标对象
* 使用table.move()替换for循环拷贝
* 改成使用类似继承的方法
1、返回aggregate_cursor不修改mongo_cursor,直接拷贝mongo_cursor的sort、skip、limit、next、close方法
2、修改了mongo_cursor:count,不再使用unpack
3、aggregate_cursor:count和aggregate_cursor:hasNext方法里options为nil时,不使用unpack
4、mongo_collection:aggregate方法里拷贝了pipeline和options
2023-07-07 15:14:37 +08:00
yzj
272af34736
修改delete使用send_command ( #1770 )
...
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com >
2023-07-06 17:44:02 +08:00
Jin Xiao
69420bdfde
upgrade lpeg to 1.1.0 ( #1766 )
...
* upgrade lpeg to 1.1.0
* fix lpeg compiler error
2023-06-27 16:28:21 +08:00
Cloud Wu
2f9d0c805a
include stdint.h for uintptr_t
2023-06-14 23:05:40 +08:00
Cloud Wu
4893fa39ee
remove unused code
2023-05-16 16:18:19 +08:00
Cloud Wu
a5af5f6ba7
Overload socket_read(), See #1750
2023-05-16 15:59:43 +08:00
Cloud Wu
8b55660274
Update lua 5.4.6 rc1
2023-05-08 19:08:11 +08:00
twinklinggu
d56cf80f95
Fix socket not closed when clusteragent exit ( #1741 )
...
Co-authored-by: twinklinggu <twinkling.gu@gmail.com >
2023-04-14 17:36:23 +08:00
Cloud Wu
aedfb9288d
See #1529
2023-03-29 16:25:49 +08:00
子熏
223bd599ba
修复设置 callback导致的crash问题 ( #1726 )
...
* fix set callback in resolve _cb
* 调整注释
* 使用预处理callback 来解决引用问题
* add cb_pre and forward_pre
* delete precb_context
* format tab
---------
Co-authored-by: zixun <lb151450@alibaba-inc.com >
2023-03-29 10:42:31 +08:00
子熏
b9a5cec191
update sproto ( #1720 )
...
Co-authored-by: zixun <lb151450@alibaba-inc.com >
2023-03-21 21:37:03 +08:00
子熏
1e45d4a9be
添加get_protocol接口 ( #1712 )
...
* 添加get_protocol接口
* 添加_proto字段
---------
Co-authored-by: zixun <lb151450@alibaba-inc.com >
2023-03-15 12:44:08 +08:00
丁大龙
6fe520a7cb
cluster.open添加maxclient参数 ( #1705 )
2023-02-18 00:57:39 +08:00
丁大龙
f344a49755
修复client_number计数错误 ( #1704 )
2023-02-17 14:36:32 +08:00
Cloud Wu
39f3ddbc10
update lua
2023-01-29 11:08:14 +08:00
华仔
cc562547a5
ignore .vscode ( #1689 )
...
Co-authored-by: Faker2 <faker@git.com >
2023-01-06 11:23:22 +08:00
Cloud Wu
58b1bda0d9
first key can't can be in hash part, see #1484
2022-11-21 19:26:16 +08:00
Cloud Wu
98311b9b91
release 1.6.0
v1.6.0
2022-11-16 10:46:35 +08:00
Cloud Wu
499610965a
Update lua
2022-11-16 10:28:38 +08:00
Cloud Wu
94a76269aa
Fix #1668
2022-10-27 15:30:06 +08:00
learno
ae35b3c4e8
bugfix: mongo getMore command field batchSize cannot replace with limit ( #1666 )
2022-10-19 17:04:49 +08:00
子云
1a1d8abd2e
read 'x-real-ip' header from nginx in websocket lib. ( #1665 )
...
* read 'x-real-ip' header from nginx in websocket lib.
* change default real_ip value to nil
2022-10-17 19:29:33 +08:00
samoyedsun
feeda06e9d
fix annotation ( #1655 )
2022-09-27 10:54:22 +08:00
ykxpb
bc4800f326
修复 mongo 游标没有数据 hasNext 返回 true,以及无效关闭游标的问题 ( #1653 )
...
Co-authored-by: yy151474 <yy151474@alibaba-inc.com >
2022-09-24 08:41:37 +08:00
ykxpb
ccfdc9440a
Revert lua makefile of "update lua" ( #1652 )
...
This reverts commit dfc706615e .
Co-authored-by: yy151474 <yy151474@alibaba-inc.com >
2022-09-22 14:51:04 +08:00
ykxpb
182a1a8d56
修复 mongo 编译告警,删除 unused function ( #1650 )
...
Co-authored-by: yy151474 <yy151474@alibaba-inc.com >
2022-09-20 22:20:14 +08:00
ykxpb
44e2583dc2
mongodb 交互协议调整为 OP_MSG ( #1649 )
...
* mongodb 交互协议调整为 OP_MSG
* Update
Co-authored-by: yy151474 <yy151474@alibaba-inc.com >
2022-09-20 10:56:33 +08:00
Cloud Wu
7b76bcd039
cluster.open(0) returns addr, port
2022-09-04 15:42:59 +08:00
Cloud Wu
2d5e4ae528
cluster.open returns addr, port
2022-09-04 14:32:31 +08:00
Cloud Wu
b61daaccf1
watchdog returns addr,port
2022-09-04 14:22:13 +08:00
Cloud Wu
01314de8e1
Add assert
2022-09-04 00:20:38 +08:00
Cloud Wu
c8197328a4
socket.listen returns addr,port
2022-09-04 00:13:49 +08:00
Cloud Wu
800a3376d6
Revert "Update the return values of socket.listen, also return the real port bind to zero ( #1638 )"
...
This reverts commit c1eeba215d .
2022-09-03 22:03:11 +08:00
Cloud Wu
6dda5f7f98
Revert "udp socket bugfix ( #1640 )"
...
This reverts commit 2a8c095e38 .
2022-09-03 22:02:45 +08:00
CKT
2a8c095e38
udp socket bugfix ( #1640 )
...
Co-authored-by: chenkete <kete.chen@centurygame.com >
2022-09-03 20:51:19 +08:00
caiyiheng
01b5d67b11
Update .gitignore ( #1639 )
2022-09-03 13:45:22 +08:00
zaxbbun
c1eeba215d
Update the return values of socket.listen, also return the real port bind to zero ( #1638 )
2022-09-03 07:19:03 +08:00
Cloud Wu
6bd6f53ab8
update lua
2022-08-25 15:14:01 +08:00
Cloud Wu
dfc706615e
update lua
2022-08-25 11:51:58 +08:00
云风
8efad53631
Emfile ( #1626 )
...
* Close the connection when EMFILE, See #1625
* close reserve_fd
2022-08-17 13:12:51 +08:00
yfy
0c1491ba99
修复https读取数据返回0报错 ( #1622 )
...
* 修复https读取数据返回0报错
./skynet/lualib/skynet.lua:861: ./skynet/lualib/skynet.lua:333: ./skynet/lualib/http/httpc.lua:109: ./skynet/lualib/http/tlshelper.lua:54: SSL_read error:6
stack traceback:
[C]: in function 'error'
./skynet/lualib/http/httpc.lua:109: in function 'http.httpc.request'
* http请求header中host头修改为默认的Host名字
2022-08-06 06:05:09 +08:00
yfy
1b54306509
http请求头host字段改为Host ( #1623 )
2022-08-05 10:02:11 +08:00
fanyh
3911e0738b
修改clusterd node closed 后再次命中__index 会继续触发 call changenode ( #1614 )
2022-06-20 20:06:08 +08:00
dxb218
fad27d7775
Update interface.lua ( #1612 )
...
string.format语法错误
2022-06-11 20:22:22 +08:00