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
473b1e7218
add function: fc_get_umask
2020-05-29 14:32:42 +08:00
YuQing
7187840167
add src/tests/test_file_lock.c
2020-05-24 15:11:31 +08:00
YuQing
d1f1bf97e1
add function uniq_skiplist_replace_ex
2020-05-21 18:10:28 +08:00
YuQing
85aff01e5e
test_crc32.c support offset and size
2020-05-17 15:54:41 +08:00
YuQing
b9cae5de7f
add macro PTHREAD_MUTEX_LOCK
2020-05-10 20:29:05 +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
87d7b1f55d
add fc_list_first_entry
2020-05-05 11:13:00 +08:00
YuQing
e86767c120
add function fc_list_add_before
2020-05-02 21:12:51 +08:00
YuQing
73dba84e82
uniq_skiplist_grow set prev link correctly
2020-04-27 14:16:00 +08:00
YuQing
e4a5cadfe1
connection info support extra data
2020-04-26 20:19:46 +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
759fd117d8
uniq_skiplist support bidirection
2020-04-21 09:31:04 +08:00
YuQing
4e53bd3e2d
skiplist add function find_ge
2020-04-10 10:19:53 +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
c6ddfb98a1
correct int64_t compare result
2020-03-30 19:00:00 +08:00
YuQing
46da99bbba
mblock stat type: int to int64_t
2020-03-30 18:44:34 +08:00
YuQing
0810cb4d21
bugfixed: allocator_array_check_capacity alloc size
2020-03-29 22:03:13 +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
2df796589c
add function common_blocked_queue_push_ex
2020-03-26 19:04:41 +08:00
YuQing
d3b0c5dfb0
add function fast_buffer_set_capacity
2020-03-26 15:51:31 +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
21336eee3e
add function fc_init_buffer
2020-03-13 15:09:08 +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
faa1b6ddf2
multi_socket_client support timeout in ms
2020-02-22 15:53:50 +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
1c7069068b
add src/tests/test_uniq_skiplist.c
2020-01-21 10:06:48 +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
c8c75666cf
upgrade version to 1.43
2019-12-25 20:35:44 +08:00
YuQing
12dde730c8
add function fc_delete_file_ex
2019-12-25 15:20:07 +08:00
YuQing
ad57015174
add buffered_file_writer.[hc] files
2019-12-25 10:47: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
414f20fa61
init compress_log_days_before to 1
2019-12-01 20:34:12 +08:00
YuQing
22a6115c4e
delete old file refine
2019-11-30 16:23:46 +08:00
YuQing
d818e59009
add function get_gzip_command_filename
2019-11-30 15:33:59 +08:00
YuQing
938a6a7fac
modify website name
2019-11-23 10:03:54 +08:00
YuQing
aabc50c144
add .gitignore
2019-11-22 09:53:58 +08:00
YuQing
bb0a1f0da6
add function local_host_ip_addrs_to_string
2019-10-15 21:47:13 +08:00
YuQing
325946a3be
add function conn_pool_set_server_info
2019-10-12 10:59:08 +08:00
YuQing
9534dfba56
change function conn_pool_connect_server_ex
2019-10-08 09:39:05 +08:00
YuQing
69463768ea
add function conn_pool_connect_server_ex
2019-09-30 21:22:19 +08:00
YuQing
d32a72db1f
add function socketCreateEx2
2019-09-29 21:35:53 +08:00
YuQing
583bdc87dc
upgrade version to 1.0.41
2019-09-29 15:58:11 +08:00
YuQing
83f572820e
log more info when socket bind fail
2019-09-29 14:55:50 +08:00
YuQing
28d175523d
sockopt.[hc] support IPv6
2019-09-27 11:29:12 +08:00
YuQing
82eee4ddd0
func getifconfigs: get IPv6 address correctly
2019-09-26 10:00:02 +08:00
YuQing
d366aa6492
multi_socket_client: fix timeout check
2019-09-24 10:20:49 +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
c1f0d855c8
change CIDR network_bits range from [16, 32) to [10, 32)
2019-05-23 18:59:29 +08:00
YuQing
91f707d1b4
log more info when setrlimit fail
2019-03-19 14:29:52 +08:00
YuQing
e9822aa8e3
php7_ext_wrapper.h: add ZEND_IS_FALSE
2018-12-01 16:18:41 +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
f64a00c0f2
add function log_try_init
2018-10-26 15:07:55 +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
660a471b98
correct macro define parameter
2018-10-10 18:43:49 +08:00
YuQing
0a442615ae
add types: string_array_t and key_value_array_t
2018-10-04 20:22:43 +08:00
YuQing
d74e3f3b13
change DEFAULT_CONNECT_TIMEOUT from 30 to 10
2018-09-27 10:13:17 +08:00
YuQing
ea74bac9d0
add function fc_memmem
2018-09-27 10:12:24 +08:00
yuqing
6ef844bd6b
add FC_IS_CHINESE_UTF8_CHAR
2018-09-17 12:01:03 +08:00
yuqing
3c9054f215
add fast_buffer_append_string2
2018-09-14 11:58:49 +08:00
yuqing
8403f2246c
add functions: string trim and fast_mpool_strdup
2018-09-13 18:21:32 +08:00
yuqing
ce98e53ae2
add FC_SET_STRING
2018-09-10 21:21:54 +08:00
yuqing
b2dd1c322e
add macro FC_IS_LETTER
2018-09-04 15:51:35 +08:00
yuqing
5e2b104970
add function fc_string_equal
2018-09-03 18:01:39 +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
3e28a90d0c
json parse array and map
2018-08-24 11:41:11 +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
15526c7277
set result to 0 in switch default branch
2018-08-20 16:39:28 +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
4ae9c8f55f
add function fc_compare_string
2018-07-31 14:27:13 +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
2c83c992ce
logger.h use gcc attribute to check format
2018-07-15 21:02:33 +08:00
yuqing
3e47901340
logger.c add new line with fprintf
2018-07-10 18:34:44 +08:00
yuqing
c20b7306b0
shared_func.h: add function starts_with and ends_with
2018-07-10 12:47:12 +08:00
YuQing
9589d315be
correct print_all_sched_entries
2018-07-07 14:21:31 +08:00
YuQing
fd94604ba4
#@set value can embed %{VARIABLE}
2018-07-07 13:29:51 +08:00
yuqing
0005b1dc08
bug fixed for set->vars and set->offset
2018-07-06 18:48:46 +08:00
yuqing
6ba4379b1e
call func_free of annotation
2018-07-06 17:48:50 +08:00
yuqing
96a57d65ee
add @function REPLACE_VARS
2018-07-06 15:35:15 +08:00
yuqing
8ef67cef6b
log more info
2018-06-29 10:31:26 +08:00
yuqing
db5672c132
add likely and unlikely macro defines
2018-06-29 09:21:16 +08:00
yuqing
0d13a2de17
sched_thread.h: add function sched_print_all_entries
2018-06-26 10:56:34 +08:00
yuqing
d664e70fdb
add function blocked_queue_terminate_all
2018-06-13 10:12:34 +08:00
yuqing
37eeef3f23
common_blocked_queue_terminate with count
2018-06-12 16:49:12 +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
63978b63ed
remove remarks
2018-06-01 18:36:38 +08:00
yuqing
890d0bf2d4
skiplist add function find_range
2018-06-01 18:30:26 +08:00
yuqing
2f76b8c4b1
code refine
2018-05-30 16:35:08 +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
6d9d71005a
make.sh and Makefile changed
2018-05-22 17:32:04 +08:00
yuqing
bbcd9f492d
remove warning: dereferencing type-punned pointer will break strict-aliasing rules
2018-05-22 15:26:25 +08:00
yuqing
004c0036b2
restore target path from /usr/local/include to /usr/include
2018-05-22 09:29:19 +08:00
yuqing
8b0c655039
ioevent refined for FreeBSD/MacOS
2018-05-21 21:36:16 +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
a6901b5bca
fast_task_queue.c: set alloc_once gracefully
2018-05-14 18:19:58 +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
5416c29a27
set err_no to 0 when success
2018-05-10 11:35:56 +08:00
yuqing
1c0ebb1433
use HW_MEMSIZE instead of HW_PHYSMEM in FreeBSD
2018-04-20 11:25:36 +08:00
yuqing
87dc7dd4d8
ini_file_reader.c function annotations LOCAL_IP_GET support index
2018-02-24 14:10:22 +08:00
yuqing
b3c89b2316
add IS_HEX_CHAR macro define
2017-07-06 10:47:03 +08:00
yuqing
0aa66e2823
add type string_t
2017-07-04 10:39:49 +08:00
Yu Qing
794eca7285
test_mblock.c changed
2017-03-09 09:50:37 +08:00
yuqing
5359199fb7
correct getFileContentEx read bytes
2017-03-08 15:24:05 +08:00
yuqing
27046ca80c
doc/ini_file_reader-Chinese.pdf
2017-03-03 10:47:09 +08:00
yuqing
92f4763638
ini_file_reader support flags
2017-03-02 09:55:24 +08:00
yuqing
2d60671511
test_ini_parser.c changed
2017-03-01 17:41:32 +08:00
yuqing
6172c54f10
init context support dynamic annotations
2017-03-01 16:57:09 +08:00
yuqing
b967e39e64
support annotataion map set incrementally
2017-02-28 17:59:02 +08:00
yuqing
c78d3d7a2a
ini_file_reader code refine
2017-02-28 16:08:38 +08:00
yuqing
5fb8531218
add function fc_trim to avoid conflict with trim
2017-02-27 16:08:55 +08:00
yuqing
f6ad3bdb79
php7_ext_wrapper.h add zend_add_assoc_double_ex
2017-02-22 15:17:24 +08:00
yuqing
2496e697dc
add function fc_ftok
2017-02-20 14:57:27 +08:00
yuqing
16455133f3
add function fc_safe_read and fc_safe_write
2017-02-16 16:34:54 +08:00
yuqing
df428e6a2d
add php extension function: fastcommon_file_put_contents
2017-02-15 15:38:47 +08:00
yuqing
7a0fae8f01
logger judge log_level in function log_it_ex and log_it_ex1
2017-02-09 18:35:39 +08:00
yuqing
14b477f034
add time_precision macro: LOG_TIME_PRECISION_NONE
2017-02-07 15:25:34 +08:00
yuqing
2b0706775a
ini_file_reader use extra context for compatible
2017-02-06 15:06:30 +08:00
Yu Qing
41c6c6d17b
code refine
2017-02-03 11:05:18 +08:00
Yu Qing
ff60187490
getExecResult code refine
2017-02-02 12:31:19 +08:00
Yu Qing
7ba58c02c0
free pContext->set.vars
2017-02-01 10:47:45 +08:00
Yu Qing
5c7ba700b6
ini_file_reader support #@set directive
2017-02-01 10:35:17 +08:00
Hongcai Deng
a16fde8070
fix: compile error when build .so using .a
...
```
src/libfastcommon.a(hash.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
```
env: Ubuntu 14.04, gcc 4.8
2017-01-29 14:20:18 +08:00
yuqing
f76f3f6206
correct PTHREAD_MUTEX_ERRORCHECK macro define
2017-01-20 10:43:08 +08:00
yuqing
87995c650d
ini_file_reader: return the last when get single value
2017-01-19 18:19:45 +08:00
yuqing
39e569a649
ini_file_reader: LOCAL_IP support CIDR addresses
2017-01-19 11:11:39 +08:00
Yu Qing
5120b1daf0
MacOS does NOT support macro RLIMIT_MSGQUEUE
2017-01-12 09:51:41 +08:00
yuqing
af49c430a6
show resource label when setrlimit fail
2017-01-04 09:33:17 +08:00
yuqing
e4871c205f
refine getFileContent log info
2016-12-22 15:09:39 +08:00
YuQing
182ad4b72a
Merge pull request #10 from hanyunqi/is_power2
...
Update function is_power2 in shared_func.c
2016-12-17 09:52:45 +08:00
yuqing
c02a55ba28
add function hash_get_prime_capacity
2016-12-13 15:56:22 +08:00
hanyunqi
7e09d1f94f
Update shared_func.c
...
update is_power2: return ((n != 0) && !(n & (n - 1)));
2016-12-08 18:47:01 +08:00
yuqing
d8b92e2421
logWarning to logDebug
2016-12-01 18:18:47 +08:00
Yu Qing
beab8dad5a
add test_char_convert_loader.c
2016-11-27 18:34:52 +08:00
Yu Qing
2fe5e5fb8f
add tests/test_char_convert.c
2016-11-26 19:16:02 +08:00
yuqing
2e1d5eb8d2
char_converter code refine
2016-11-26 13:36:14 +08:00
yuqing
562513b358
fast_char_convert function changed
2016-11-26 13:04:45 +08:00
yuqing
33085e9bf6
add files: char_convert_loader.h and char_convert_loader.c
2016-11-26 12:20:43 +08:00
yuqing
fe4f42f090
char_converter code refine
2016-11-25 15:07:48 +08:00
yuqing
8cb8c29c45
add function char_converter_set_pair
2016-11-25 10:11:40 +08:00
yuqing
abc9882418
memset 0 for FastCharConverter
2016-11-25 09:06:28 +08:00
yuqing
e2735189a5
add files: char_converter.h and char_converter.c
2016-11-25 09:02:03 +08:00
yuqing
100ae31704
Revert "log support replace space chars"
...
This reverts commit aa683c2324 .
2016-11-24 19:55:51 +08:00
yuqing
aa683c2324
log support replace space chars
2016-11-24 19:15:23 +08:00
yuqing
ef019ab04a
logger context add field: use_file_write_lock
2016-11-13 14:22:12 +08:00
yuqing
8b563ce830
add file trylock functions
2016-11-13 12:44:24 +08:00
yuqing
bd9a588840
compare exename in process_start function
2016-11-12 11:55:14 +08:00
Yu Qing
b53a158f67
process_ctrl code refine
2016-11-12 11:23:44 +08:00
yuqing
cb3dc49e2a
add macro function INI_STRING_IS_TRUE
2016-11-11 18:20:41 +08:00
yuqing
e16e0f5d4f
add function get_time_item_from_str
2016-11-11 15:14:51 +08:00
yuqing
decd1498d0
add tests/test_ini_parser.c
2016-11-10 14:04:24 +08:00
yuqing
41db7d0bc2
move SET_SOCKOPT_NOSIGPIPE from sockopt.c to sockopt.h
2016-11-10 14:00:12 +08:00
yuqing
3c77ef047d
id generator support file mode
2016-10-31 18:46:03 +08:00
yuqing
8ccf3503ca
fast_buffer code refine
2016-10-08 09:39:56 +08:00
yuqing
e552ad7e1d
fixbug for select
2016-09-08 15:43:24 +08:00
yuqing
bf8023287e
add function iovent_add_to_deleted_list
2016-09-02 19:14:00 +08:00
yuqing
39a6e7b656
setsockopt SO_NOSIGPIPE when nessary
2016-08-12 17:09:18 +08:00
yuqing
51c9b28f90
change zend_hash_find to zend_hash_str_find
2016-08-09 13:47:44 +08:00
yuqing
792549e60c
php7_ext_wrapper.h: #include <stdbool.h>
2016-08-08 15:27:51 +08:00
yuqing
a56d0af695
correct zend_hash_find_wrapper for php7
2016-08-02 09:44:41 +08:00
yuqing
60cd0565e5
php7_ext_wrapper.h: fix memory leak in php 7
2016-08-01 19:36:32 +08:00
yuqing
1eab718d4f
modify php-fastcommon/test.php
2016-07-25 12:46:44 +08:00
yuqing
1c2b72f9a6
add function id_generator_get_timestamp
2016-06-17 10:09:41 +08:00
yuqing
962773d029
for compatibility
2016-06-15 10:06:09 +08:00
yuqing
28930e70b6
ini_file_reader support #@for
2016-06-14 22:41:15 +08:00
yuqing
d34dfee8dc
ini_file_reader support for statement
2016-06-14 21:56:49 +08:00
yuqing
4d0f217917
ini_file_reader support #@if
2016-06-14 17:29:25 +08:00
yuqing
fb0162d769
check g_free_queue.head == NULL before free_queue_realloc()
2016-06-08 18:30:36 +08:00
yuqing
45e57c2bb0
correct pointer type in php7
2016-06-06 21:15:53 +08:00
yuqing
75e62f6f51
correct zend_hash_update_wrapper for php7
2016-06-06 21:07:45 +08:00
yuqing
372a02d9d4
add function http_parse_url_params
2016-06-06 20:49:34 +08:00
liuwei
a6d00af752
memset sockaddr_in & sockaddr_in6
2016-05-24 18:00:26 +08:00
liuwei
96cfd0283a
add getIpaddrsByName() function
2016-05-23 14:20:44 +08:00
yuqing
299ac49055
id generator in php extension support multi instance
2016-05-19 15:50:45 +08:00
yuqing
6682b9842e
conn_pool_init compatable
2016-05-18 11:18:15 +08:00
yuqing
3eb39e834c
connect by ip and connection pool support ipv6
2016-05-18 10:40:36 +08:00
yuqing
094f3900c1
inet_aton to inet_pton
2016-05-17 21:22:08 +08:00
yuqing
ce39cdd497
add comment
2016-05-16 09:22:53 +08:00
yuqing
5cb9066ed1
upgrade php-fastcommon version to 1.0.6
2016-05-16 09:06:07 +08:00
yuqing
064c4730e4
id generator support extra bits
2016-05-14 19:37:55 +08:00
yuqing
f829bd5e88
id generator support variable sn bits
2016-04-15 14:46:30 +08:00
yuqing
a6f4fe6a3e
refine remark info
2016-04-14 14:55:46 +08:00
yuqing
50236cd764
id generator test printf
2016-04-12 11:23:43 +08:00
yuqing
3b68b068b1
refine sn sprintf format
2016-04-11 09:30:54 +08:00
Yuqing
f895a970c6
use local private ip first as machine id
2016-04-10 20:22:03 +08:00
Yuqing
324d6db66f
php extension support id generator
2016-04-10 19:01:47 +08:00
Yuqing
9ddd1b8f03
beautify debug info
2016-04-10 17:52:25 +08:00
Yuqing
b16e56b9a3
id generator for multi processes
2016-04-10 17:44:10 +08:00
yuqing
8104af5d27
add id generator for multi processes
2016-04-10 00:22:50 +08:00
yuqing
6bd718079e
add file lock and unlock functions
2016-04-09 22:11:28 +08:00
liaozaixue
743399a442
wrapper resource interface for php7
2016-04-05 16:21:00 +08:00
liaozaixue
94a5f932e4
add zval_ptr_dtor wrapper for php7
2016-04-05 13:56:33 +08:00
yuqing
b2b933e5a7
add function fd_set_cloexec
2016-03-31 15:51:58 +08:00
yuqing
1bdc948909
remove debug info
2016-03-18 08:44:18 +08:00
yuqing
0103aef791
add logger parameter: compress_log_days_before
2016-03-16 09:18:57 +08:00
yuqing
ef8d758a3c
support compress log file in new thread
2016-03-01 16:00:29 +08:00
yuqing
72f0214695
logger support compress the log file
2016-02-29 18:37:10 +08:00
liaozaixue
c7ba512e09
add zend_hash_index_find_wrapper
2016-02-26 18:13:22 +08:00
yuqing
3f15350bb0
Merge branch 'master' of github.com:happyfish100/libfastcommon
2016-02-22 18:35:37 +08:00
yuqing
09bc970dab
bugfixed: free task point correctly in free_queue_destroy
2016-02-22 18:34:41 +08:00
Yu Qing
fa404e98df
add macro HAVE_USER_H
2016-02-19 14:56:38 +08:00
Yu Qing
e32e6315b5
compile passed in FreeBSD 10.2
2016-02-19 11:27:39 +08:00
yuqing
d5183cffb6
php7_ext_wrapper.h add more macro defines
2016-02-19 10:13:30 +08:00
Yu Qing
f4313d4669
add macro HAVE_VMMETER_H
2016-02-18 16:52:56 +08:00
yuqing
9f8acd52e9
php extension use php7_ext_wrapper.h
2016-02-15 11:35:54 +08:00
yuqing
cfad73a8d5
add php7_ext_wrapper.h for php7 migration
2016-02-15 11:21:29 +08:00
YuQing
a1c28b4914
Merge pull request #6 from lichhaosysu/master
...
pthread_pool bug fix
2016-02-14 12:16:49 +08:00
yuqing
96bb553688
delete pid file check pid
2016-02-11 13:56:18 +08:00
yuqing
3042d28d2a
add comments
2016-02-11 13:19:36 +08:00
相见欢
ea449d773c
pthread_pool bug fix
2016-02-07 13:04:01 +08:00
yuqing
c6a41be8b9
add comments
2016-02-03 16:03:08 +08:00
Yu Qing
39b0a94eb2
set tv_usec 0 in Linux
2016-02-02 16:37:31 +08:00
yuqing
b1a6bbfa27
output file device
2016-02-02 15:05:30 +08:00
Yu Qing
6c74629633
compile passed in mac os
2016-02-02 10:13:18 +08:00
yuqing
0e11466085
output file inode
2016-02-02 08:52:17 +08:00
yuqing
a8b9d024e3
define nsec of file stat in Linux and FreeBSD
2016-02-01 15:07:06 +08:00
YuQing
08d3932845
Merge pull request #5 from lichhaosysu/master
...
io_opt.c bug fix
2016-02-01 09:41:29 +08:00
Yu Qing
283f16db7d
remove useless variable
2016-01-29 14:59:28 +08:00
lichhaosysu
e1d140c7e5
io_opt.c bug fix
2016-01-29 14:42:44 +08:00
yuqing
7b9b40d2f5
use timeval instead of second
2016-01-29 14:40:34 +08:00
Yu Qing
0165a3357b
compile by mac os
2016-01-29 10:17:32 +08:00
yuqing
e4876f0c61
add get_sysinfo
2016-01-28 12:26:11 +08:00
Yu Qing
0758be6e88
sysinfo for FreeBSD
2016-01-28 11:30:07 +08:00
yuqing
7b61231508
Merge branch 'master' of github.com:happyfish100/libfastcommon
2016-01-27 22:51:52 +08:00
yuqing
74715cb089
iovent bug fixed for FreeBSD
2016-01-27 22:51:13 +08:00
yuqing
4a6b6a6576
linux process starttime as Unix timestamp
2016-01-27 18:38:35 +08:00
Yu Qing
8a77902f34
iOS test ok
2016-01-27 18:14:36 +08:00
yuqing
4421133912
get_processes support FreeBSD
2016-01-27 17:52:46 +08:00
yuqing
94feb0b311
change log level
2016-01-26 21:53:25 +08:00
yuqing
c18387c7f8
add test_blocked_queue
2016-01-26 19:16:23 +08:00
yuqing
9229a5cf0b
add blocked_queue_terminate
2016-01-26 09:52:31 +08:00
yuqing
cb82009656
add fast_blocked_queue.[hc]
2016-01-26 09:42:53 +08:00
yuqing
d911109689
test changed
2016-01-25 17:47:55 +08:00
yuqing
6c7852cdab
format
2016-01-20 21:57:36 +08:00
yuqing
12c1355c2a
export function task_queue_get_new_buffer_size
2016-01-19 14:28:44 +08:00
yuqing
9c7a510803
do NOT use function xxxmntent in linux
2016-01-18 15:32:32 +08:00
yuqing
a786f36d65
getlocaladdrs
2016-01-18 10:17:45 +08:00
yuqing
05e01ce113
getlocaladdrs fixed
2016-01-17 22:48:30 +08:00
yuqing
481f57befa
add micro HAVE_FILE_SYSTEM_ID check
2016-01-14 18:48:37 +08:00
yuqing
e73b37f7da
ini_file_reader add iniGetSectionNames and iniGetSectionItems
2016-01-14 17:09:26 +08:00
yuqing
bb57593f14
test_mblock ok
2016-01-14 13:35:10 +08:00
yuqing
0fc9297155
add function get_processes for Linux
2016-01-14 12:29:14 +08:00
yuqing
6af9b0d52d
return EOPNOTSUPP on other unix system
2016-01-13 16:30:03 +08:00
yuqing
00d5c43b50
remove useless variable
2016-01-12 18:20:25 +08:00
Yu Qing
6ddfdf1265
compile Ok in mac OS
2016-01-12 16:47:15 +08:00
yuqing
10c15228ec
add function get_mounted_filesystems
2016-01-12 16:32:26 +08:00
yuqing
700f8d2c2b
add system_info.h and system_info.c
2016-01-12 15:14:47 +08:00
Yu Qing
c2b66b3ced
format if mac address
2016-01-12 11:18:29 +08:00
yuqing
1c6a73d4f3
support get local mac addresses
2016-01-12 10:56:07 +08:00
yuqing
5d130c1608
remove debug info
2016-01-11 18:25:53 +08:00
yuqing
66e2db7b6f
add skiplist wrapper
2015-12-30 11:16:06 +08:00
yuqing
a1fc869430
support free data callback
2015-12-29 16:55:29 +08:00
yuqing
9dc2f2901e
skiplist add find_all and delete_all
2015-12-29 14:21:36 +08:00
yuqing
a6ac2867c1
add tests/test_multi_skiplist.c
2015-12-29 12:23:59 +08:00
yuqing
5bae0d57cb
support multi skiplist
2015-12-29 12:23:03 +08:00
yuqing
866c8a83fe
support multi skiplist
2015-12-28 17:03:34 +08:00
yuqing
7de0f850e4
make.sh changed
2015-12-27 13:48:10 +08:00
yuqing
a6ef605c6e
skiplist support stable sort
2015-12-25 19:02:36 +08:00
yuqing
159d69983b
test code modified
2015-12-25 16:56:52 +08:00
yuqing
c8024b10e0
test_skiplist.c
2015-12-25 16:32:04 +08:00
yuqing
d07af5dda8
make.sh: replace perl with sed
2015-12-25 16:26:26 +08:00
yuqing
0bb237190d
skiplist bugfixed
2015-12-25 16:06:43 +08:00
yuqing
74fe4c8889
add skiplist
2015-12-24 18:20:14 +08:00
liuwei
62e9004f2c
fixed rpm build error
2015-11-18 10:59:16 +08:00
yuqing
9828c45343
add function fast_mblock_init_ex1
2015-11-16 13:48:26 +08:00
Yu Qing
b6eb0e20da
add fast_buffer
2015-11-13 15:13:28 +08:00
Yu Qing
d49bfa7294
allocator support reclaim
2015-11-06 18:57:39 +08:00
Yu Qing
c39a4915de
mblock support trunk malloc check and notify
2015-11-06 15:19:07 +08:00
Yu Qing
00056480d4
mblock stat output alloc_bytes
2015-11-06 10:34:51 +08:00
Yu Qing
389234ff76
fast allocator ok
2015-11-05 18:44:12 +08:00
Yu Qing
fb5abf5927
add fast_allocator
2015-11-04 17:19:36 +08:00
yuqing
0fe90e35da
add function get_sys_cpu_count()
2015-11-04 15:02:56 +08:00
yuqing
f734884700
fast_mblock reclaimed object pool
2015-11-03 18:13:51 +08:00
yuqing
8f26a0a354
use pthread_detach
2015-11-03 09:55:43 +08:00
yuqing
07c93f6206
delay task can execute in a new thread
2015-11-02 18:24:26 +08:00
yuqing
3e1d1e2ae1
add function get_sys_total_mem_size, ONLY support Linux and FreeBSD
2015-11-02 16:19:49 +08:00
yuqing
81f75a019c
stat_print output memory usage summary
2015-10-30 17:30:22 +08:00
yuqing
cc070f18f4
modify mblock stat ratio
2015-10-30 16:01:16 +08:00
yuqing
d2db706f7a
mblock stat function test ok
2015-10-30 15:53:43 +08:00
yuqing
c17d55ec7d
mblock stat function test ok
2015-10-30 15:34:22 +08:00
yuqing
e2ef7c87b6
mblock add stat function
2015-10-30 12:52:13 +08:00
yuqing
cb81992905
add function get_current_time_us and get_current_time_ms
2015-10-26 17:07:43 +08:00
yuqing
96a6464e91
sched_thread.c: support delay tasks
2015-10-16 16:44:46 +08:00
yuqing
90ea025cb5
sched_thread.c: task can execute in a new thread
2015-10-16 10:43:02 +08:00
Yu Qing
75198e5005
install to /usr/lib/ anyway
2015-10-10 11:37:11 +08:00
yuqing
3a3abaf148
add function is_private_ip
2015-10-09 16:12:30 +08:00
yuqing
a9388ab7fe
remove macro IGNORE_ANNOTATION
2015-09-18 15:47:21 +08:00
yuqing
ba00a3bb12
export php function: fastcommon_get_first_local_ip
2015-09-15 14:56:29 +08:00
yuqing
8f5c4fd3f7
iniGetValues use iniGetValuesEx
2015-09-14 18:03:49 +08:00
yuqing
c049d85f96
check n for BSD event set
2015-09-14 09:18:34 +08:00
yuqing
e46333c00a
ioevent for BSD ok
2015-09-13 20:49:09 +08:00
liuwei
07ffa9e6bd
ignore annotation in some cases
2015-09-11 19:40:15 +08:00
liuwei
5f52349bd6
ignore annotation in some cases
2015-09-11 18:22:49 +08:00
yuqing
29451eaf49
add function get_first_local_ip
2015-09-08 19:09:35 +08:00
yuqing
69c8970e2d
add INIT_SCHEDULE_ENTRY_EX
2015-09-05 22:42:55 +08:00
YuQing
fbe55f1889
Merge pull request #3 from agile6v/master
...
added INIT_SCHEDULE_ENTRY macro for simplifying code.
2015-09-05 22:21:35 +08:00
yuqing
fe9b8dad60
allow_ips support CIDR addresses such as 172.16.12.0/22
2015-09-05 19:40:23 +08:00
yuqing
c0b48a7bf8
make clean
2015-08-26 19:00:15 +08:00
yuqing
31149bb6e9
correct PTHREAD_MUTEX_ERRORCHECK define
2015-08-26 18:46:07 +08:00
hao
77bb1bf94e
compile depends system bit version
2015-08-26 11:32:16 +08:00
hao
444c68f1e8
fix 'PTHREAD_MUTEX_ERRORCHECK undeclared'
...
throw error 'PTHREAD_MUTEX_ERRORCHECK' undeclared when compile on centos
2015-08-26 10:51:49 +08:00
yuqing
de1be00ccb
ini_file_reader support annotation function
2015-08-25 17:20:20 +08:00
yuqing
757ae81e35
Merge branch 'dev'
2015-08-25 15:07:32 +08:00
liuwei
d1026167d4
eliminate potential trouble
2015-08-20 15:46:59 +08:00
yuqing
89d7ea6d27
call log_check_rotate anyway
2015-08-20 14:43:47 +08:00
liuwei
d3e8cc1833
eliminate potential trouble
2015-08-19 15:52:10 +08:00
liuwei
fdaa6afa59
eliminate potential trouble
2015-08-19 10:37:31 +08:00
liuwei
8821594608
eliminate potential trouble
2015-08-18 18:36:07 +08:00
liuwei
333f9b56e4
eliminate potential trouble
2015-08-18 17:52:57 +08:00
liuwei
a9fc4a5a2a
optimizing
2015-08-18 17:21:50 +08:00
liuwei
ecfafbcf38
optimizing
2015-08-18 16:43:42 +08:00
liuwei
9208cfde96
eliminate potential trouble
2015-08-18 09:46:25 +08:00
liuwei
a173000298
optimize
2015-08-17 19:32:33 +08:00
liuwei
ad51130d2d
add annotation mechanism for ini parse
2015-08-17 16:05:32 +08:00
yuqing
ee32ccd512
make.sh changed
2015-08-17 15:31:47 +08:00
yuqing
f71c846a24
resolve compile warning in mac book
2015-08-16 10:50:21 +08:00
yuqing
ba6cc38703
add GEO function get_line_distance_km
2015-08-06 16:04:58 +08:00
yuqing
c623a6c935
correct logger rotate time near 0 clock
2015-07-24 09:44:31 +08:00
yuqing
e610e8a45d
OS macro defines put in _os_define.h
2015-07-15 14:26:39 +08:00
yuqing
f9936ec4ba
ini_file_reader.c realloc change to malloc and memcpy
2015-07-14 09:50:35 +08:00
yuqing
d884069622
ini_file_reader.c change PJWHash to Time33Hash and increase capacity
2015-07-13 15:13:06 +08:00
yuqing
e879393c88
add comment
2015-07-01 15:17:19 +08:00
yuqing
59fbe9214a
add fast_mpool for memory pool
2015-07-01 13:26:07 +08:00
yuqing
693874d0b9
fast_mblock.h add static inline
2015-06-25 10:25:23 +08:00
yuqing
f296a3e459
fast_mblock add fast_mblock_delay_free
2015-06-19 19:04:37 +08:00
yuqing
7a2c942863
ini_file_reader set global section before and after directive #include
2015-06-16 10:34:35 +08:00
yuqing
bcd00f4079
fast_mblock suport alloc and free object
2015-06-15 20:33:14 +08:00
yuqing
7e1abd6054
ioevent support set timeout
2015-06-11 09:49:04 +08:00
yuqing
b3e37bd584
change comment
2015-05-22 14:43:42 +08:00
yuqing
d1d225c8db
fast_mblock.c support none lock
2015-05-22 14:24:09 +08:00
yuqing
0fd3425fb6
bug fixed: log header correctly when rotate
2015-05-15 14:02:39 +08:00
yuqing
8b9bdfd333
logger.c call log_check_rotate in lock
2015-05-15 11:16:14 +08:00
yuqing
62f94164c1
macro FDFS_WRITE_BUFF_SIZE change to FAST_WRITE_BUFF_SIZE
2015-05-12 14:05:09 +08:00
yuqing
d2d916fbab
correct fsbytes to sbytes
2015-05-11 18:25:37 +08:00
yuqing
72e75e039d
use file lock when write logger header
2015-05-08 17:49:19 +08:00
yuqing
c21f9a59a7
fast_task_info support set_buffer_size and realloc_buffer
2015-04-28 17:22:22 +08:00
yuqing
7afa2a9e40
set_run_by log more info
2015-02-27 17:27:55 +08:00
yuqing
ec4df41993
add process_start
2014-12-16 18:36:15 +08:00
agile6v
a7b22f41f6
added INIT_SCHEDULE_ENTRY macro
2014-12-10 12:47:38 +08:00
yuqing
0a87130ee0
check the return value of snprintf
2014-12-06 12:41:19 +08:00
yuqing
e7b2874e2a
can call sched_add_entries many times before schedule
2014-12-05 18:12:02 +08:00
yuqing
60b1f50c1f
bug fixed: must check the return value of vsnprintf
2014-12-05 09:54:48 +08:00
yuqing
23a12c1bef
bug fixed: NOT set last_block->next when realloc
2014-11-20 14:21:17 +08:00
yuqing
c0778f54fb
remove usleep call in logger.c
2014-11-05 18:30:47 +08:00
yuqing
8718f26b2e
must set timeout entry's dlink to NULL because NOT in time wheel
2014-10-31 11:05:15 +08:00
yuqing
81a45e7253
correct iovent macro define
2014-10-31 09:28:23 +08:00
yuqing
865cb7032a
remote debug statement
2014-10-29 10:11:22 +08:00
yuqing
6db41264ef
mblock support alloc_init_func
2014-10-26 11:52:28 +08:00
yuqing
503cdc6006
get local ipaddr support interface based 1
2014-10-24 18:20:00 +08:00