EfveZombie
b2612d92eb
socket_server: 增加 request_package 初始化, 避免内存工具警告 ( #2050 )
...
* socket_server: 增加 request_package 初始化逻辑, 避免内存工具警告
* add request_init function instead of {0}
---------
Co-authored-by: efve.zff <efve.zff@alibaba-inc.com >
2025-05-21 15:35:57 +08:00
fanyh
1ba381a1c2
skynet_error output abnormal log add error tag ( #2039 )
2025-03-18 20:14:45 +08:00
navi
88df42a60f
fix message数量过多导致int溢出 ( #2014 )
...
Co-authored-by: 角弓 <jiaogong.lzh@alibaba-inc.com >
2024-12-26 17:29:48 +08:00
huojicha
839570ce3f
1.提供支持ipv6的udp client和server接口, 可支持ipv6 ( #1967 )
...
* 1.提供支持ipv6的udp client和server接口, 可支持ipv6
* remove chinese comments
2024-08-08 02:34:15 +08:00
Cloud Wu
aa20f7642b
cleanup
2024-06-24 23:15:20 +08:00
Cloud Wu
89a821ced0
Avoid to use je_malloc_usable_size, See #1907
2024-06-24 07:21:31 +08:00
chengf2018
1a0041982b
fix annotation ( #1903 )
2024-04-24 10:16:17 +08:00
iamwlj
9fd43778e2
Update skynet_main.c ( #1890 )
...
Putting the relevant code together makes it easier to understand
2024-03-18 18:58:54 +08:00
yzj12138
9e000da81f
修复执行skynet.exit后别的服务call有概率卡死 ( #1846 )
...
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com >
2024-01-03 18:14:17 +08:00
Cloud Wu
2f9d0c805a
include stdint.h for uintptr_t
2023-06-14 23:05:40 +08:00
samoyedsun
feeda06e9d
fix annotation ( #1655 )
2022-09-27 10:54:22 +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
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
云风
8efad53631
Emfile ( #1626 )
...
* Close the connection when EMFILE, See #1625
* close reserve_fd
2022-08-17 13:12:51 +08:00
涵曦
448fe14b9e
fix comment: profile default is on. ( #1581 )
2022-04-22 16:35:46 +08:00
涵曦
341b7924a0
remove unused function skynet_module_insert #1579 ( #1580 )
2022-04-20 17:18:23 +08:00
Cloud Wu
bcd012f9cf
uintptr_t need stdint.h
2022-04-15 10:57:37 +08:00
Cloud Wu
c4da547259
fix retireall, see #1576
2022-04-15 08:19:20 +08:00
涵曦
ee103e97cd
Fix handle register when slot[0] is null will segmentation fault ( #1574 )
2022-04-13 22:36:47 +08:00
涵曦
2d42adb739
fix typo: remove duplicate include ( #1570 )
2022-04-10 15:35:46 +08:00
Bruce
9fd7a51b34
Compat lua compile as cpp ( #1568 )
...
* Compat lua compile as cpp
* Compat lua compile as cpp
2022-04-07 17:22:32 +08:00
Cloud Wu
d1ce950dc1
Fix #1552
2022-03-19 07:10:52 +08:00
Cloud Wu
b13281b77d
bugfix : See #1535
2022-02-14 07:52:46 +08:00
Cloud Wu
9cbab6f5ec
avoid warnings
2021-09-27 08:52:23 +08:00
Cloud Wu
edbed9f980
bugfix: Don't need inc sending since dw_buffer is not NULL
2021-09-26 11:57:32 +08:00
colin
338f53fbe0
use _mm_pause ( #1433 )
2021-07-01 19:29:48 +08:00
colin
5c154d34dc
improve spinlock ( #1431 )
...
* improve spinlock
* improve spinlock
* typo
Co-authored-by: colin <linzhengqun@163.com >
2021-06-30 12:42:58 +08:00
喜欢兰花山丘
f5eee7dcbb
Update socket_server.c ( #1410 )
...
1. 去除冗余代码
2. fix 保存第一现场的错误码
2021-05-30 06:52:02 +08:00
busymage
2b71c2755a
Fix boostrap only support 1 param. ( #1377 )
2021-04-07 19:08:29 +08:00
Cloud Wu
df2803469e
Add report_error(), this may fix issue #1376
2021-04-07 07:26:02 +00:00
Cloud Wu
e69f876867
raise error on start, fix #1374
2021-04-07 03:39:22 +00:00
Cloud Wu
85dde52107
minor bugfix : socket_server_poll never returns -1
2021-04-06 16:45:51 +08:00
Cloud Wu
8ad6622936
halfclose_read should call before force_close
2021-04-06 15:47:32 +08:00
Cloud Wu
ba26c8a432
Do not close on error, see #1373
2021-04-06 10:46:41 +08:00
云风
9228b05dfe
socket.onclose() ( #1364 )
...
* Add socket.onclose() and close socket immediately when socket channel closed by peer
* Revert read_socket(), Add SOCKET_MORE, See #1358
* remove warning log , because it's not a rare case any more. See #1358
2021-03-19 18:52:09 +08:00
Cloud Wu
600a64327e
fix halfclose bug, See detail #1358
2021-03-09 17:45:03 +08:00
Cloud Wu
0d9bfcb721
Atomic variable should be volatile, #1356 #1317
2021-03-09 10:54:49 +08:00
Cloud Wu
8d895ab2f0
See #1317
2021-03-05 21:36:52 +08:00
Cloud Wu
c12a7d1b99
Remove unused include
2021-03-04 11:40:15 +08:00
Cloud Wu
77c965e9e8
Don't support old MacOSX
2021-03-03 17:08:12 +08:00
Cloud Wu
0d949678b9
shutdown write when write error, See #1346
2021-03-01 11:18:56 +08:00
Cloud Wu
29a212db8e
Shutdown SHUT_RD after read 0, See #1346 for detail
2021-02-25 22:36:36 +08:00
Cloud Wu
ccac1d4526
fix #1348
2021-02-25 19:59:12 +08:00
Cloud Wu
4bb883b989
report write error
2021-02-24 17:02:23 +08:00
Cloud Wu
6a8ca29d99
set result for SOCKET_CLOSE, see #1347
2021-02-24 11:54:47 +08:00
Cloud Wu
6a4a2482fc
expand buffer faster
2021-02-24 11:33:35 +08:00
Cloud Wu
04dd921c5f
Fix socket half close issues, see #1346 for details
2021-02-24 10:57:54 +08:00