Commit Graph

403 Commits (71b2229427ceddf02d77b0cd8ac9cba0862bf752)

Author SHA1 Message Date
YuQing 6957c19992 fast_mblock.[hc]: add function fast_mblock_free_objects 2021-09-09 08:39:51 +08:00
YuQing a66370d0f8 add files: sorted_queue.[hc] 2021-09-02 21:05:09 +08:00
YuQing c6b2c32fe2 add function: fast_allocator_avail_memory 2021-08-17 10:01:42 +08:00
YuQing b7ecd0d4c4 add function init_pthread_rwlock 2021-08-13 21:10:05 +08:00
YuQing 2fafa215fd add function fc_queue_timedpeek 2021-08-11 11:32:23 +08:00
YuQing 44dcf4f821 add functions getFileContentEx1 and getFileContent1 2021-08-08 15:11:29 +08:00
YuQing 47c4eaeb13 fast_allocator.[hc]: correct reclaim_interval logic 2021-08-06 15:18:36 +08:00
YuQing de879c15ee uniq_skiplist.h: add function uniq_skiplist_iterator_at 2021-06-30 15:05:31 +08:00
YuQing 3ad4a89ff5 process_action support action status 2021-06-26 11:00:52 +08:00
YuQing ba1f8eb38f add function fc_check_realloc_iovec_array 2021-06-08 14:15:24 +08:00
YuQing e068391c87 add function get_path_block_size and get_device_block_size 2021-06-02 11:07:28 +08:00
YuQing 48f108b40d add function fc_queue_pop_to_queue_ex 2021-06-01 17:08:24 +08:00
YuQing 41681a5eb7 process_stop more gracefully (kill -9 on timeout) 2021-06-01 15:34:18 +08:00
YuQing da2077c6b8 add function get_kernel_version 2021-05-27 10:05:52 +08:00
YuQing 639d388c6d use libcurl to fetch URL resource 2021-05-26 15:21:55 +08:00
YuQing 6fddce73c5 add function normalize_path_ex and normalize_uri 2021-05-25 16:48:10 +08:00
YuQing df4fdfcab7 uniq_skiplist.[hc]: init function add parameter: allocator_use_lock 2021-05-20 10:08:01 +08:00
YuQing 797f4e08b8 fast_mblock.[hc]: support batch alloc and batch free 2021-05-18 15:06:59 +08:00
YuQing 4558290e1e add macro fc_fallocate 2021-05-11 09:07:23 +08:00
YuQing 082da383ff set thread name as necessary 2021-04-29 21:02:36 +08:00
YuQing 9d9cee76ac add functions fc_server_load_from_ini_context etc. 2021-04-28 20:31:00 +08:00
YuQing f37c3bf013 parse_bytes function more graceful 2021-04-17 21:51:27 +08:00
YuQing 6a3bcd4547 add file locked_list.h 2021-04-09 21:28:22 +08:00
YuQing c1bb9d6532 add functions: fc_queue_push_queue_to_tail etc. 2021-04-07 14:53:29 +08:00
YuQing 097a7db3cb add functions: fc_check_filename_ex 2021-03-28 21:08:20 +08:00
YuQing cc304e5d7a add functions: fc_string_case_compare, fc_string_case_equal etc. 2021-03-21 10:15:29 +08:00
YuQing 07ba689835 add FilenameString type and macro 2021-03-19 09:17:11 +08:00
YuQing 13de41bc05 add functions: fc_mkdirs and str_replace 2021-03-16 09:10:34 +08:00
YuQing 88aa31df07 add uniq_skiplist_pair struct and init function 2021-03-15 20:57:48 +08:00
YuQing 04226e28fc add macros: FC_ABS and FC_NEGATIVE 2021-03-10 14:38:09 +08:00
YuQing 02701c3781 add function fc_queue_timedpop 2021-02-01 10:52:55 +08:00
YuQing 35aa996333 add function common_blocked_queue_timedpop 2021-01-29 17:39:12 +08:00
YuQing 41a4ca78c7 fast_buffer.[hc]: add function fast_buffer_append_binary 2021-01-27 21:10:43 +08:00
YuQing e104d2f7f6 upgrade version to 1.0.47 2021-01-22 10:25:37 +08:00
YuQing c822e92b19 fast_mblock.[hc]: support wait with element limit 2021-01-14 15:25:37 +08:00
YuQing 1f126476bc fc_atomic.h: add FC_ATOMIC_SET 2021-01-11 16:22:39 +08:00
YuQing 7d5a540a2f INI_FIND_ITEM just break instead of return 2020-12-29 16:21:00 +08:00
YuQing 89c68e11db add function get_time_item_from_conf_ex 2020-12-29 15:15:49 +08:00
YuQing 89abbd2ee4 use readdir instead of readdir_r in Linux 2020-12-24 18:34:16 +08:00
YuQing 7190fad3d0 add function uniq_skiplist_find_node_ex 2020-12-24 16:03:53 +08:00
YuQing 0cd65f088c tcp_quick_ack option for Linux 2020-12-06 16:59:09 +08:00
YuQing 93e6cec05d locked_timer: atomic opt for lock_index 2020-11-29 21:52:49 +08:00
YuQing 8718818dc0 add locked_timer.[hc]: time wheel timer with lock 2020-11-26 16:18:37 +08:00
YuQing f5028fcbe0 fast_timer.[hc]: support lock for option 2020-11-23 11:45:33 +08:00
YuQing 58e1aea32b add function: fc_queue_empty 2020-11-03 22:09:42 +08:00
YuQing 5f9bfd8bae add function: iniGetPercentValueEx 2020-10-31 14:19:21 +08:00
YuQing 1ac8c8f3c2 fast_task_info add fields: reffer_count and continue_callback 2020-10-28 11:59:37 +08:00
YuQing bb33b2e09f notify field: add volatile modifier 2020-10-21 09:30:53 +08:00
YuQing 5b6bb3193b fast_task_queue.h: change nio_stage field 2020-10-19 16:35:36 +08:00
YuQing fa8f93b018 add function skiplist_get_proper_level 2020-10-10 11:11:42 +08:00
YuQing 0aab6a0531 correct spell iovent to ioevent :( 2020-09-30 18:57:08 +08:00
YuQing dc40977500 sched_thread.c: sched_add_entries gracefully 2020-09-29 22:18:30 +08:00
YuQing 7d5512682b fixed printf format for port 2020-09-27 08:53:57 +08:00
YuQing 55fc4013b3 add function fc_get_last_lines 2020-09-26 11:15:57 +08:00
YuQing bc5efd235e add function fc_sleep_ms 2020-09-12 15:41:16 +08:00
YuQing 130d7fe110 add func conn_pool_compare_ip_and_port 2020-09-08 09:06:26 +08:00
YuQing a749b84ce2 sockopt.[hc]: add function asyncconnectserverbyip 2020-09-06 18:49:15 +08:00
YuQing 98b816c625 fast_mblock.[hc]: support alloc elements limit 2020-09-01 21:22:13 +08:00
YuQing 6eb2d1c2e7 shared_func.[hc]: add function fc_path_contains 2020-08-31 16:02:10 +08:00
YuQing 3ff6cd8844 ini_file_reader.h: add struct ini_full_context 2020-08-29 15:44:17 +08:00
YuQing cc80f721f2 add functions: fc_get_first_line and fc_get_last_line 2020-08-24 11:35:31 +08:00
YuQing f776a818f4 correct old_value in the log info 2020-08-22 12:02:23 +08:00
YuQing c2d8faaba7 thread pool enhance 2020-08-05 15:00:37 +08:00
YuQing 29586005ba add files: thread_pool.[hc] 2020-07-20 18:03:47 +08:00
YuQing 8e0f5794d9 add files: shared_buffer.[hc] 2020-07-10 21:44:10 +08:00
YuQing 4aad4f78b9 add files: fc_memory.[hc] 2020-07-07 10:32:16 +08:00
YuQing ec22ab681e bugfixed: uniq_addresses use FCAddressPtrArray 2020-06-28 19:26:42 +08:00
YuQing fb03bf23ba add fc_queue.[hc] 2020-06-01 16:38:48 +08:00
YuQing d1f1bf97e1 add function uniq_skiplist_replace_ex 2020-05-21 18:10:28 +08:00
YuQing 7149a54128 use mutex lock when access dynamic content array 2020-05-07 16:41:21 +08:00
YuQing 54cb8f8415 free_queue support init_callback 2020-05-06 16:04:01 +08:00
YuQing c8bf9f24ef connection_pool support validate connection on error 2020-04-26 11:12:52 +08:00
YuQing 4011fcb39e add test_file_write_hole.c 2020-04-24 22:15:41 +08:00
YuQing 688fcf4b74 uniq_skiplist add some macro defines 2020-04-22 20:27:21 +08:00
YuQing 01b1841fda add function fc_get_file_line_count_ex 2020-03-31 10:10:49 +08:00
YuQing 201daee3b6 mblock_manager_stat_print format 2020-03-30 23:20:55 +08:00
YuQing 427818d005 fast_mblock stats refine 2020-03-29 12:30:42 +08:00
YuQing 590aa8d3a0 bugfixed: call fast_mblock_destroy in common_blocked_queue_destroy 2020-03-28 23:12:02 +08:00
YuQing c2837fde5f add functions getIpAndPort and getPeerIpAndPort 2020-03-26 11:36:44 +08:00
YuQing da4c9a2581 common_blocked_queue_return_nodes 2020-03-23 21:54:31 +08:00
YuQing 6d88bb980d bugfixed: must use lock when free_all_nodes 2020-03-22 13:21:20 +08:00
YuQing edb8b2c4dd sched_add_entries use temp ScheduleArray for rare case 2020-03-21 09:50:03 +08:00
YuQing 4d653d1b3e add functions: create_work_threads_ex and fc_create_thread 2020-03-12 10:36:51 +08:00
YuQing 3d0956d302 nio_thread_data support thread notify 2020-03-10 21:16:27 +08:00
YuQing f9881d96b7 add canceled field for complicated thread model 2020-03-09 10:51:46 +08:00
YuQing b88d5b03fe add waiting_queue for Linux eventfd notify 2020-03-08 16:12:54 +08:00
YuQing 6b528f123f add ctx pointer for libserverframe nio 2020-03-06 22:06:35 +08:00
YuQing d87d98dbe0 add function fast_char_unescape 2020-03-04 20:54:50 +08:00
YuQing 773f1bc28c shared_func.[hc]: add functions getFileSize 2020-03-03 10:19:53 +08:00
YuQing 8005b18198 fast_allocator.[hc]: add function fast_allocator_strdup 2020-02-27 22:26:17 +08:00
YuQing 3e3bcda2df add functions fc_floor_prime and fc_ceil_prime 2020-02-27 15:31:44 +08:00
YuQing 74bcd17360 in func writeToFile: change write to fc_safe_write 2020-02-25 21:25:29 +08:00
YuQing a57b87b556 common_blocked_queue support pop all nodes 2020-02-24 21:57:05 +08:00
YuQing fd4368e6e2 bugfixed: use new_addr instead of addr 2020-02-21 20:45:20 +08:00
YuQing 6e5511614d add function fc_server_check_connect_ex 2020-02-20 16:03:28 +08:00
YuQing 89ad53974f add uniq server addresses 2020-02-19 15:49:39 +08:00
YuQing 11a441e1f8 server_id_func.[hc] OK 2020-02-17 16:25:42 +08:00
YuQing 81e6455819 add tests/test_server_id_func.c 2020-02-15 20:55:57 +08:00
YuQing 7459f7ded4 add files: server_id_func.[hc] 2020-02-14 21:21:42 +08:00
YuQing 5d3c3c576c add function fast_mpool_log_stats 2020-02-12 19:11:52 +08:00
YuQing d6b0f1b0c4 add function is_network_error 2020-02-09 17:17:37 +08:00
YuQing 798244cc1b add function fc_memrchr 2020-02-08 09:19:10 +08:00
YuQing 90e61572c0 fast_mblock.[hc]: add init_args for init_func 2020-02-03 22:42:27 +08:00
YuQing a6066181ae add function split_string_ex 2020-02-02 20:49:57 +08:00
YuQing 91e0124ae5 add uniq_skiplist.[hc] 2020-01-19 22:40:46 +08:00
YuQing 916ad1f9e0 add test file src/tests/test_pthread_lock.c 2020-01-19 15:52:23 +08:00
YuQing 12dde730c8 add function fc_delete_file_ex 2019-12-25 15:20:07 +08:00
YuQing 2992bfc4be add buffered_file_writer.[hc] 2019-12-25 10:41:58 +08:00
YuQing 1302c5306a correct function skiplist_iterator in skiplist.h 2019-12-24 08:52:31 +08:00
YuQing 41e4e6f079 replace function call system to getExecResult 2019-12-06 11:49:35 +08:00
YuQing b7dde81d1e function create_work_threads changed 2019-12-03 21:20:41 +08:00
YuQing d818e59009 add function get_gzip_command_filename 2019-11-30 15:33:59 +08:00
YuQing 69463768ea add function conn_pool_connect_server_ex 2019-09-30 21:22:19 +08:00
YuQing 583bdc87dc upgrade version to 1.0.41 2019-09-29 15:58:11 +08:00
YuQing 28d175523d sockopt.[hc] support IPv6 2019-09-27 11:29:12 +08:00
YuQing cd4a1c3959 multi_socket_client.c: code refine 2019-09-22 21:31:55 +08:00
YuQing 93ca7b42cd ini_file_reader.c: fix empty string compare 2019-09-22 10:23:36 +08:00
YuQing f6609c7612 add function id_generator_next_extra_ptr 2018-11-09 22:07:21 +08:00
YuQing 32c1445d41 add function resolve_path and fast_buffer_append_file 2018-10-29 16:48:08 +08:00
YuQing 350f923710 add function hash_find1 and hash_find2 2018-10-26 10:24:23 +08:00
YuQing d27948ed9c add function format_http_date 2018-10-11 16:33:38 +08:00
YuQing ea74bac9d0 add function fc_memmem 2018-09-27 10:12:24 +08:00
yuqing 85cc906b1d add function fc_strdup 2018-08-27 15:14:53 +08:00
yuqing e53cbda01b json parser refine error info 2018-08-24 16:25:29 +08:00
yuqing 827fc115e2 add json_parser.[hc] for parse json array and map 2018-08-22 10:35:33 +08:00
yuqing 94741c51c2 add function fc_split_string and fc_match_delim 2018-08-20 18:11:18 +08:00
yuqing 2aab8aa4c5 support directive: #@add_annotation 2018-08-20 16:24:52 +08:00
yuqing 9cd25c3686 ini_file_reader code refine 2018-08-17 11:56:35 +08:00
yuqing 74e00bb244 add function conn_pool_parse_server_info and conn_pool_load_server_info 2018-08-14 17:44:55 +08:00
yuqing 722a944266 sockopt.c: add global variable try_again_when_interrupt 2018-07-31 16:46:05 +08:00
yuqing 08dce9933e add file fc_list.h 2018-07-26 15:28:39 +08:00
yuqing 0bdb5e4b03 ini_file_reader add function iniGetRequiredStrValueEx 2018-07-23 12:48:44 +08:00
yuqing 142d557c8f sched_thread.c: fix first schedule time 2018-07-19 17:43:15 +08:00
yuqing d0729c2540 common_blocked_queue.h: add function common_blocked_queue_try_pop 2018-07-16 15:08:59 +08:00
yuqing c20b7306b0 shared_func.h: add function starts_with and ends_with 2018-07-10 12:47:12 +08:00
YuQing fd94604ba4 #@set value can embed %{VARIABLE} 2018-07-07 13:29:51 +08:00
yuqing 96a57d65ee add @function REPLACE_VARS 2018-07-06 15:35:15 +08:00
yuqing 0d13a2de17 sched_thread.h: add function sched_print_all_entries 2018-06-26 10:56:34 +08:00
yuqing 571be969dd shared_func.h: add functions int2str and long2str 2018-06-11 17:04:46 +08:00
yuqing 530c17aaa1 correct CRC32 2018-06-07 20:43:32 +08:00
yuqing 890d0bf2d4 skiplist add function find_range 2018-06-01 18:30:26 +08:00
yuqing beb0c77ebb skiplist optimization 2018-05-30 13:49:27 +08:00
yuqing fd894d810b add skiplist_set.[hc] and skiplist bug fixed 2018-05-29 18:10:50 +08:00
yuqing 03037c5d5f ioevent.[hc]: remove care_events in FreeBSD or MacOS 2018-05-21 19:04:02 +08:00
yuqing 6c9b0b4401 add files: multi_socket_client.[hc] 2018-05-18 16:48:26 +08:00
yuqing 83d1eb2bde add files: common_blocked_queue.[hc] 2018-05-17 09:36:55 +08:00
yuqing 679c8162fa logger.h: add function log_get_level_caption 2018-05-11 18:32:40 +08:00
yuqing 7751ae2808 shared_func.h: add functions float2buff / buff2float, double2buff / buff2double 2018-05-10 18:24:42 +08:00
yuqing 87dc7dd4d8 ini_file_reader.c function annotations LOCAL_IP_GET support index 2018-02-24 14:10:22 +08:00
yuqing 5359199fb7 correct getFileContentEx read bytes 2017-03-08 15:24:05 +08:00