Commit Graph

328 Commits

Author SHA1 Message Date
zsx
7b4033f749 http_request::check_range should compatible the situation when the returned range value is less than the given value. 2019-01-14 14:43:29 +08:00
zhengshuxin
2081b206c2 set free_obj's default value to true 2019-01-02 11:25:17 +08:00
zsx
5bb7daf807 tcp_keeper: add ttl controling for connection and connections pools;
http_request/http_client add controling parameters
2018-12-29 15:42:03 +08:00
zsx
0004373bcd fixed bugs of acl_fiber_cond_timedwait in acl_fiber_cond.c 2018-12-25 11:32:42 +08:00
zsx
c89341b77b optimize connect_pool 2018-12-19 13:31:46 +08:00
zsx
bd6375fe2a connect_manager: support fiber running in threads 2018-12-16 16:47:51 +08:00
zsx
98f9efeae3 fixed one bug in redis_stream::get_one_message() 2018-12-12 10:49:19 +08:00
zsx
45dc0ee481 fixed one bug for websocket module 2018-12-02 21:28:03 +08:00
zhengshuxin
ff5bc053b9 redis_stream benchmark testing 2018-12-02 20:15:27 +08:00
zhengshuxin
7fbcd4d56b testing acl::redis_stream ok! 2018-12-02 14:58:41 +08:00
zsx
33535e8b6f add task_qlen and threads_pool in master_threads 2018-11-28 20:50:31 +08:00
zsx
7a934e149c One bug in sha1 was fixed by dawei.lin@net263.com. 2018-11-22 22:18:25 +08:00
zhengshuxin
26cd06ba65 add supporting for XCLAIM redis command. 2018-11-14 23:24:32 +08:00
zsx
c4cafbebc1 adding redis stream ... 2018-11-14 19:00:58 +08:00
zhengshuxin
062bffaf0d add xlen, xack for redis_stream 2018-11-11 22:01:19 +08:00
zhengshuxin
8c0b4e79d3 add redis_stream::xinfo command 2018-11-11 21:59:52 +08:00
zhengshuxin
d453e86828 websocket::send_frame_data can be called multiple. 2018-10-20 22:43:08 +08:00
zhengshuxin
7b343621e0 after the connection with redis-server is created, the dbnum can be selected in acl::redis_client, acl::redis_client_pool. 2018-10-20 22:20:57 +08:00
zhengshuxin
f4ed8742fb fixed bugs in websocket::read_frame_data and WebSocketServlet.cpp. 2018-10-20 00:30:02 +08:00
zsx
c949a3be7a add proc_on_unbind in master_udp 2018-10-08 16:32:44 +08:00
zhengshuxin
e00cd9391d add multiple constructor for server_socket to avoid compling error for some using cases. 2018-10-08 14:00:58 +08:00
zhengshuxin
b46fea21d4 add end_with in acl::string 2018-10-07 21:35:46 +08:00
zsx
97fddf37a2 bugfix: acl_inet_connect_ex of acl_inet_connect.c should support domain:port format 2018-09-28 17:52:18 +08:00
zsxxsz
cb218497b6 add new flag to control if disable SO_REUSEADDR when binding the local
listening addr.
2018-09-22 09:40:33 +08:00
zsx
7847375f25 The acl_inet_ntop should use ':' as the seperate for IPV4, or the acl_udp_server.c will mismatch the changed IPV4 addrs;
The sstreams_ in master_udp.cpp should be protected by mutex avoiding multipule-threads change it in the same time.
2018-09-21 21:56:21 +08:00
zsx
f27af8b424 acl support IPV6 is OK now! 2018-09-16 21:49:58 +08:00
zsx
ac3bcf1f98 fixed bugs in acl::string::begin_with API 2018-09-08 13:58:49 +08:00
zsxxsz
8ebffc404a add sqlite_cursor for supporting the Sqlite's cursor operation. 2018-09-02 20:38:33 +08:00
zsx
6f18301ac8 add token_tree class for 256-fork matching tree;
format the files with DOS format.
2018-08-19 15:31:26 +08:00
zsx
a90ebcf86e there are some changes in the interfaces's meaning of thread_cond::wait, server_socket::accept. 2018-08-17 16:50:30 +08:00
zsx
76b6bd1086 bugfix: there's one bug in db_mysql::sane_mysql_query when one connection lost and the db handle be set NULL, we should re-connect. 2018-08-07 22:25:12 +08:00
zsx
9d1c2e850b bugfix: json parser gson serialization can't handle empty array object. 2018-08-02 23:00:22 +08:00
zsx
2843c3197d tbox: support transfering NULL message 2018-07-27 13:26:07 +08:00
zsx
0c7b9b420e bugfix: json's serialization can't support double type with the integer type;
feature: add methods in acl::string which can use std::string.
2018-07-24 18:45:51 +08:00
zsx
581677bffc There is one bug in acl::HttpServlet which session will not be freed 2018-07-10 21:37:25 +08:00
zsx
37b326bd44 add file lock method in acl::fstream 2018-07-05 13:56:10 +08:00
zsx
33a4bdbb36 acl::thread's default status been set has been changed from detachable to joinable. 2018-06-29 09:42:27 +08:00
zhengshuxin
2aa9e0748d rewrite tbox with pure C++ template class 2018-06-28 21:04:54 +08:00
zsx
72f3d59b79 thread_cond::wait add locked parameter for one locking condition 2018-06-15 15:27:59 +08:00
郑树新
6176ef4b37 add on_connected/on_refused/on_timeout callbacks in connect_monitor 2018-06-04 18:00:32 +08:00
zsx
b501d19e1e sqlite lib upgrade to 3.23.1 version 2018-05-31 17:10:27 +08:00
zhengshuxin
4f1958d796 fixed one problem in redis_key::renamenx about the incorrect type of the returned value. 2018-05-23 22:20:22 +08:00
zsx
4221226341 add features in redis_client_cluster & connect_manager 2018-05-14 15:28:39 +08:00
zhengshuxin
3053425333 fixed on bug in redis_pubsub.cpp when subscribe multi-channels in one connection 2018-05-06 17:23:07 +08:00
zhengshuxin
dcbd9224ef fixed one important bug in redis_command.cpp, don't call clear in run() method 2018-05-04 14:45:53 +08:00
郑树新
ff440103c3 http module: unsafe uri can be corrected internal. 2018-04-27 11:44:02 +08:00
zsx
4a07b261bf add diff algorthm 2018-04-19 15:26:33 +08:00
zsx
ca9d9f16f3 thread_cond::wait don't save log info when waiting timeout 2018-04-12 21:16:52 +08:00
zsx
0a22cd42ef acl::thread can be used for more than once --- by 562351190@qq.com 2018-04-08 14:35:27 +08:00
zsx
308c172654 add redis_role class 2018-03-22 19:04:42 +08:00
zsx
69b8095e48 add copy overriding in atomic_long 2018-03-20 11:54:58 +08:00
zsx
02719d7b6b fixed one bug in thread_cond::wait there was one problem when computing timeout 2018-03-19 10:49:45 +08:00
zsxxsz
919aabfa9c add redis_sentinel class in redis module 2018-03-18 23:43:31 +08:00
zsx
d8ab35a1ac serialize gson: should support the std::map object is optional 2018-02-22 11:50:24 +08:00
zsx
ab6e5fb2b7 add string header in server_socket.hpp 2018-02-13 18:03:24 +08:00
郑树新
87b2fd1508 redis_client.cpp: add authing_ for authing in dead loop. 2018-02-05 12:04:35 +08:00
郑树新
342f42c38a fiber: support winsock IOCP event. 2018-02-01 18:40:31 +08:00
zsx
7329f830e9 server_socket supports SO_REUSEPORT on Linux3.x 2018-01-29 23:33:49 +08:00
zsxxsz
2abefabbc8 add last_nready in aio_handle class getting the count of events. 2018-01-09 23:45:13 +08:00
zsx
e089381026 redis_cluster: support CLUSTER NODES for redis.4.x.x 2018-01-01 10:58:43 +08:00
zsx
e8da0142a4 fixed one compiling error with cmake 2017-12-14 18:35:18 +08:00
zsx
1b164db078 ssl: polarssl_conf's init should not in constructor 2017-12-07 16:24:21 +08:00
zsx
ea896f9aed redis: fixed bugs when objs were binary data 2017-12-05 12:01:24 +08:00
ubuntu14
42c1eb8b2d polarssl_conf: fixed one bug when loading polarssl library 2017-12-03 14:54:47 +08:00
zhengshuxin
781b0a048a add acl::tbox class for transfering messages between multi-threads. 2017-11-14 10:52:44 +08:00
zhengshuxin
859ac18cab string: fixed one bug in operator < and > 2017-11-07 22:58:41 +08:00
zhengshuxin
284a672677 redis: fixed one bug in redis_hash::hmset 2017-10-27 00:05:28 +08:00
zhengshuxin
e150f36373 modify changes.txt 2017-10-06 23:24:14 +08:00
zhengshuxin
563ce8a395 feature: thread_mutex supports recursive parameter;
feature: fiber_mutex supports thread_mutex;
2017-09-29 17:35:17 +08:00
zhengshuxin
83724d3e8a valgrind: free global objects when process exiting to avoid valgrind reporting error. 2017-09-28 12:29:20 +08:00
zhengshuxin
c57beda5df method name in bitmap class maybe collision with some macro on some platfom 2017-09-21 16:18:15 +08:00
zhengshuxin
08e241acb8 add trigger.hpp for trigger events by time. 2017-09-18 18:59:59 +08:00
zhengshuxin
2af766fb6e make acl::mbox generic with c++ template method. 2017-09-01 23:14:20 +08:00
zhengshuxin
5b0cdc1fc9 add bitmap class for bit operation 2017-08-23 15:14:40 +08:00
zhengshuxin
8f58d773b4 add atomic operation and modify vc projects for adding atomic class. 2017-08-18 22:55:31 +08:00
zhengshuxin
7bca9425a9 add tcp communication connections pool. 2017-08-08 18:43:25 +08:00
zhengshuxin
27b42d5c30 polarssl_conf & polarssl_io support loading polarssl lib dynamic. 2017-08-04 15:13:40 +08:00
zhengshuxin
df1b49d215 add some functions for HMSET commands in redis_hash class. 2017-07-27 13:35:47 +08:00
zhengshuxin
93b3250ca5 add methods that get configure path 2017-07-22 21:32:21 +08:00
zhengshuxin
93f0ebf307 fixed compile warning for clang++ -Wunused-private-field 2017-07-20 11:08:33 +08:00
zhengshuxin
88d6f6c44f all server templates support SIGHUP callback. 2017-07-04 23:33:28 +08:00
Zheng shuxin
4c41bcb72a feature: add transaction support in db_sqlite class by lindawei 2017-06-28 12:25:29 +08:00
zhengshuxin
c0a5c23084 fixed one memory leak bug in http_request's reset() method. 2017-06-24 12:16:18 +08:00
ubuntu14
dc2a42c0e6 valgrind can also check master_udp's samples in alone running mode. 2017-06-21 12:43:53 +08:00
root
0707afa35f add WebSocketServlet by "fuwangqin" <niukey@qq.com> 2017-05-31 14:43:18 +08:00
zhengshuxin
183c0a6a3a add samples for recvmmsg/sendmmsg 2017-05-29 11:47:52 +08:00
zhengshuxin
67e2a99eee fixed one bug in websocket::make_frame_header for one memory overflow problem;
fixed one bug in connect_manager::remove
2017-05-27 10:03:58 +08:00
zhengshuxin
3c19f24ede calling setuid in acl_master to help services written by golang to change running privilege. 2017-05-22 17:52:05 +08:00
zhengshuxin
8b0c600fac fixed bugs in gson_helper.ipp for object's pointer copy 2017-05-14 00:16:42 +08:00
zhengshuxin
1a6af8a6be add unix-domain support in pgsql 2017-05-08 09:49:30 +08:00
zhengshuxin
14fb7b5f36 add postgresql client example. 2017-05-01 11:51:04 +08:00
zhengshuxin
9b12875d17 support postgresql. 2017-04-27 21:46:28 +08:00
zhengshuxin
b73d188e30 support IPV6. 2017-04-07 20:13:08 +08:00
zhengshuxin
d167d8f85d fixed fiber's errors;
add feature in some modules.
2017-03-31 23:04:16 +08:00
zhengshuxin
57f8afc403 modify acl Makefiles to renaming lib names. 2017-03-25 23:05:44 +08:00
zhengshuxin
3cd0864746 supporting ios and can be compiled by xcode. 2017-03-12 14:49:48 +08:00
zhengshuxin
a176d4a290 fixed one bug in redis_command::run when connection is lost. 2017-02-24 12:51:04 +08:00
zhengshuxin
09e4b0d381 migrate to Android platform OK! 2017-02-12 21:39:38 +08:00
zhengshuxin
2eb4403b88 add one sample for gson object serialization. 2017-01-03 10:46:31 +08:00
zhengshuxin
03d36523e0 add acl_fiber_signal in lib_fiber. 2016-12-31 13:52:34 +08:00