Commit Graph
1204 Commits
Author SHA1 Message Date
Xie Han fb8608afeb Optimize JSON parsing speed. 2025-06-16 16:25:11 +08:00
Xie Han a03f4f39cc Fix setting chunk data. 2025-06-05 21:47:07 +08:00
xiehan 9d0dd5e0e5 Add HttpMessageChunk::encode(). (#1727) 2025-06-03 20:46:19 +08:00
Xie Han 0946a65015 Optimize parsing JSON string. 2025-05-28 22:31:36 +08:00
xiehan c31a28e59c Call 'extract' only when HTTP response code 2XX. (#1724) 2025-05-22 22:30:28 +08:00
xiehan 7c4577210b Enable to call 'extract' after HTTP headers completed. (#1722) 2025-05-21 20:38:41 +08:00
Xie Han 3e19da2f65 Call '__sync_sub_and_fetch' directly because ref always > 1. 2025-05-18 16:51:16 +08:00
Xie Han 71ace08a2e Add including 'RedisMessage.h'. 2025-05-06 21:27:34 +08:00
Xie Han 3564d4578a Parse JSON number in one turn. 2025-05-06 00:37:13 +08:00
Xie Han 627dce5c5b Use 'size_t' for JSON object/array's size. 2025-04-28 18:13:07 +08:00
Xie Han fb55032a13 Do not sort JSON object for better parsing speed. 2025-04-27 21:55:21 +08:00
Xie Han 224b74731b Enable setting specific SSL_CTX for consul client. 2025-04-25 21:24:23 +08:00
xiehan c56986be74 Add http chunked client and task. (#1714) 2025-04-23 19:37:34 +08:00
Xie Han 6bd5f01573 Return const attachment when message pointer is const. 2025-04-18 14:56:17 +08:00
Xie Han 93d6e0a2cf Fix SSL bug when create communication targets. 2025-04-14 14:27:00 +08:00
Xie Han d055848353 Optimize parsing JSON numbers. 2025-04-01 17:39:03 +08:00
Xie Han 7134612fce update JSON parser copying json value. 2025-03-25 15:53:13 +08:00
Xie Han b030e4e770 Use strtoul for parsing positive hex numbers. 2025-03-13 17:34:29 +08:00
Xie Han acc64b6eed Use 'size_t' for JSON string length. 2025-03-09 17:29:12 +08:00
xiehan 8076c75051 Make it compatible with OpenSSL 1.0. (#1700) 2025-02-27 18:22:36 +08:00
xiehan 2f06cbb83e Simplify code of Communicator::deinit(). (#1699) 2025-02-19 19:04:44 +08:00
Xie Han 4bf00f8869 Simplify DNS resolver when resolving both v4 and v6. 2025-02-14 23:04:38 +08:00
xiehan 50d7c52f52 Set error as DNS error if DNS server timeout. (#1697) 2025-02-14 18:56:12 +08:00
Xie Han 2c596c45ea Remove unnecessary checking. 2025-02-13 16:50:01 +08:00
Xie Han 0c15ff4f3e Add json_object_value_name(). 2025-02-10 22:07:47 +08:00
xiehan cae71e45cd Simplify DNS server implementation. (#1693) 2025-02-08 19:37:30 +08:00
kedixa 5fc57225b7 DnsMessage support add and encode raw record (#1691) 2025-02-07 20:09:49 +08:00
xiehan 24dd7610bc Decrease max aio events when io_setup() failed. (#1689) 2025-01-15 20:51:32 +08:00
xiehan 1c483da973 Enable 'prepare' for server task too. (#1686) 2025-01-13 23:16:01 +08:00
xiehan 69eb2e1719 Use poller threads to handle canceled timer. (#1679) 2025-01-13 21:47:33 +08:00
kedixa 8cb8935fd7 kafka set failed state when produce or fetch failed (#1685) 2025-01-13 20:37:07 +08:00
Xie Han 3aeb5a06fc Enable to set connection context without changing deleter. 2025-01-13 17:52:20 +08:00
kedixa 90e32e3bc4 fix KafkaMessage::parse_record_batch (#1680)
* fix KafkaMessage::parse_record_batch

* use compress_type instead of compressed
2025-01-08 20:40:24 +08:00
xiehan b9062aeeff Fix compiling error when message doesn't have a move constructor. (#1678)
* Fix compiling error when message doesn't have a move constructor.

* Clear response safely.
2025-01-07 01:57:22 +08:00
xiehan 5fbe73f5aa Add template type on WFTaskFactory::send_by_name()/signal_by_name(). (#1677)
* Add template type on WFTaskFactory::send_by_name()/signal_by_name().

* Remove unused parameter name.
2025-01-03 22:49:04 +08:00
Xie Han d79101194e std::nullptr_t -> nullptr_t 2025-01-02 22:29:40 +08:00
xiehan 305dbeb746 Simplify service session's state. (#1676) 2025-01-01 20:54:43 +08:00
xiehan 75c662c3ed Set service session's passive state more precisely. (#1675) 2024-12-28 19:13:44 +08:00
xiehan e18b9b536f Fix UDP server bug that server does't reply. (#1674) 2024-12-28 02:51:55 +08:00
Xie Han 1c6eda95a5 Remove WFTaskFactory::release_guard() with default NULL message. 2024-12-26 03:26:43 +08:00
Xie Han c8e87c4b99 Remove out of date commentary. preadv/pwritev supported on macOS. 2024-12-26 03:11:52 +08:00
xiehan 0c1d96aad6 Check node 'removed' flag before next read. (#1670)
* Check node 'removed' flag before next read.

* Add __poller_close_pfd().
2024-12-16 00:50:47 +08:00
xiehan 6ee1163672 Declare 'nullptr_t' manually in WFTaskFactory. (#1669) 2024-12-13 21:30:55 +08:00
xiehan 6fdf73dba0 std::nullptr_t -> nullptr_t (#1668) 2024-12-13 16:25:28 +08:00
xiehan 6a6428e131 Fix function overload resolution. (#1667) 2024-12-12 20:14:10 +08:00
xiehan ca70076b69 Fix closing fd 0 error on macOS. (#1666) 2024-12-08 03:46:15 +08:00
xiehan e928e857a7 Remove some global macros and rename an interface. (#1665) 2024-12-02 01:04:06 +08:00
xiehan e4203a11ad Remove PackageWrapper::next(). (#1664) 2024-11-30 03:11:47 +08:00
xiehan a8ce324b71 random() -> rand(). (#1663) 2024-11-28 16:24:08 +08:00
xiehan 05168d9eab Fix poller memleak when malloc failed. (#1661) 2024-11-24 19:34:55 +08:00