Commit Graph

1038 Commits

Author SHA1 Message Date
Xie Han 908a2deaa2 Optimize by moving 'delete' out of locks. 2023-12-06 18:08:04 +08:00
Xie Han 30c6a27546 Simplify codes. 2023-12-06 16:29:03 +08:00
Xie Han 5a4a250797 Add 'guard' task wrapper. 2023-12-06 03:05:32 +08:00
Xie Han 7302381e88 Enable setting 'watch timeout' for client tasks. 2023-11-28 15:51:23 +08:00
Xie Han 273134f0ff Optimize code structure of json-parser. 2023-11-26 01:39:19 +08:00
xiehan 8fa0e05b40 ENCODE_IOV_MAX 8192 -> 2048 (#1430)
* ENCODE_IOV_MAX 8192 -> 2048

* Update tutorial-10-user_defined_protocol.md

* Update tutorial-10-user_defined_protocol.md
2023-11-22 20:00:57 +08:00
xiehan 4d76fd989e Remove MapReduce (to be redesinged). (#1429) 2023-11-22 17:16:20 +08:00
Xie Han bff80b4289 Update calling __list_splice. 2023-11-19 03:25:21 +08:00
Xie Han a8645ff882 Remove redundant include. 2023-11-19 03:23:35 +08:00
Xie Han d5c7711190 Remove unused macros. 2023-11-19 03:13:09 +08:00
Xie Han 2a964cab99 Fix task state when getaddrinfo failed. 2023-11-18 03:21:00 +08:00
Xie Han e0b48a7173 Always lock when taking task to make code simpler. 2023-11-17 19:12:53 +08:00
Xie Han 61c1b48765 Use global dns request seq id. 2023-11-17 19:12:53 +08:00
Xie Han c9a65e4c76 Update list.h 2023-11-17 01:55:56 +08:00
Xie Han 7d01226400 Double check for safety. 2023-11-16 21:10:52 +08:00
Xie Han b8d30d7288 Reduce locking in executor. 2023-11-15 03:39:00 +08:00
Xie Han 05e62219e2 Callback directly in poller_del_timer(). 2023-11-14 20:18:47 +08:00
Xie Han 0546ed42e9 Increase communicator's msgqueue maxlen. 2023-11-14 20:10:31 +08:00
Xie Han 4a12cef38e Use std::string::compare. 2023-11-14 15:51:49 +08:00
Xie Han 48d4871228 Simplify codes. 2023-11-13 19:08:57 +08:00
xiehan c9d141d528 Optimize named object searching. (#1420) 2023-11-13 16:54:57 +08:00
Xie Han dece7f57af Simplify code. 2023-11-11 03:06:31 +08:00
kedixa 72c55c85a0 fix #1418: KafkaTask may bad free when retry (#1419) 2023-11-10 20:35:46 +08:00
xiehan d0e0320adb Remove 'dup(0)' on macOS. (#1416) 2023-11-07 20:16:48 +08:00
xiehan 7d34727de4 Simplify poller codes. (#1414) 2023-11-06 04:16:34 +08:00
Xie Han 1d434f30d3 Optimize AUTH request. 2023-10-31 17:30:37 +08:00
kedixa df4082f477 redis support command 'auth user pass' (#1411) 2023-10-31 16:42:56 +08:00
Xie Han 05bc91942e Optimize parsing JSON number. 2023-10-27 16:24:19 +08:00
xiehan 10a6b26c0e Remove WFMultiThreadTask. (#1405) 2023-10-25 15:53:05 +08:00
xiehan 915711cae0 Parse JSON number more precisely. (#1404) 2023-10-24 22:04:53 +08:00
xiehan 2d598730a4 Parse JSON number manually. (#1401) 2023-10-24 17:22:26 +08:00
Xie Han cfee907eb1 Fix parsing JSON numbers. 2023-10-20 23:19:58 +08:00
Xie Han d8d6d7f9ac Remove WFDnsClient's constructor. 2023-10-20 17:13:47 +08:00
Xie Han 9c93192bb4 Optimize timed thread/go task's state when timer failed. 2023-10-17 21:21:42 +08:00
Xie Han d99327c3f9 Add named mailbox task. 2023-10-17 19:16:43 +08:00
Xie Han f4d3c3923a Switch thread if connection is NULL. 2023-10-17 15:42:17 +08:00
Xie Han 1e2da01632 Optimize creating named object. 2023-10-17 13:18:52 +08:00
Xie Han 7c88123ef3 Optimize named timer's lock logic. 2023-10-17 01:09:17 +08:00
Xie Han c4049c0c44 Fix timer bug of accessing SleepSession after added to poller. 2023-10-16 15:00:53 +08:00
Xie Han f870f756d2 Fix bug when error on receiving request. 2023-10-16 03:02:30 +08:00
Xie Han c674c5cc1d Move callback out of the lock when poller stopped. 2023-10-16 01:31:04 +08:00
Xie Han e9a36a1081 Add 'Aborted' error string. 2023-10-16 00:16:19 +08:00
xiehan 4409c186a2 Merge pull request #1389 from Barenboim/master
Add cancelable timer task, update thread/go task's state when timeout.
2023-10-13 18:09:31 +08:00
Xie Han b2cbb57b82 Enable canceling a timer task before started. 2023-10-13 02:58:16 +08:00
Xie Han f7cdcad111 Change timed thread/go task's state to ERROR when timeout. 2023-10-12 19:16:12 +08:00
Xie Han 4c9e97c63e Change poller timer's state when finished. 2023-10-12 17:34:28 +08:00
Xie Han 0f78821a54 Add cancelable timer task. 2023-10-12 04:20:24 +08:00
Xie Han 769c9ae673 Enable canceling a SleepSession. 2023-10-12 00:17:48 +08:00
xiehan 5a45872346 Merge pull request #1387 from Barenboim/master
Simplify codes.
2023-10-10 17:01:44 +08:00
Xie Han bfbdbd1e4b Simplify codes. 2023-10-10 16:40:58 +08:00