HISTORY 11.9 KB
Newer Older
Y
yuqing 已提交
1

Y
YuQing 已提交
2
Version 1.44  2020-09-27
3
  * add test file src/tests/test_pthread_lock.c
Y
YuQing 已提交
4
  * add uniq_skiplist.[hc]
Y
YuQing 已提交
5
  * add function split_string_ex
6
  * fast_mblock.[hc]: add init_args for init_func
Y
YuQing 已提交
7 8
  * struct fast_task_info add field: nio_stage
  * add function fc_memrchr
Y
YuQing 已提交
9
  * add function is_network_error
Y
YuQing 已提交
10
  * add function fast_mpool_log_stats
Y
YuQing 已提交
11
  * add files: server_id_func.[hc]
12
  * common_blocked_queue support pop all nodes
13
  * shared_func.[hc]: add functions fc_floor_prime and fc_ceil_prime
14 15
  * fast_mpool.[hc]: change function fast_mpool_strdup
  * fast_allocator.[hc]: add function fast_allocator_strdup
Y
YuQing 已提交
16 17
  * shared_func.[hc]: add function getFileSize
  * char_converter.[hc]: add function fast_char_unescape
Y
YuQing 已提交
18
  * struct fast_task_info add ctx pointer for libserverframe nio
19
  * struct thread_data add waiting_queue for Linux eventfd notify
20
  * struct fast_task_info add canceled field for complicated thread model
Y
YuQing 已提交
21
  * nio_thread_data support thread notify
22
  * pthread_func.[hc] add functions: create_work_threads_ex and fc_create_thread
23
  * sched_add_entries use temp ScheduleArray for rare case
Y
YuQing 已提交
24
  * add function common_blocked_queue_return_nodes
25
  * add functions getIpAndPort and getPeerIpAndPort 
26
  * bugfixed: call fast_mblock_destroy in common_blocked_queue_destroy
Y
YuQing 已提交
27
  * add function fc_get_file_line_count_ex
Y
YuQing 已提交
28
  * uniq_skiplist add function find_ge and support bidirection
29
  * connection_pool support validate connection on error
Y
YuQing 已提交
30
  * fast_task_queue.[hc]: free_queue support init_callback
31
  * ini_file_reader.c: use mutex lock when access dynamic content array
Y
YuQing 已提交
32
  * uniq_skiplist add function uniq_skiplist_replace_ex
Y
YuQing 已提交
33 34
  * add files: fc_queue.[hc]
  * add files: fc_memory.[hc]
Y
YuQing 已提交
35
  * add files: shared_buffer.[hc]
Y
YuQing 已提交
36
  * add files: thread_pool.[hc]
37
  * shared_func.[hc]: add function fc_path_contains
38
  * fast_mblock.[hc]: support alloc elements limit
39
  * sockopt.[hc]: add function asyncconnectserverbyip
40

Y
YuQing 已提交
41
Version 1.43  2019-12-25
42 43
  * replace function call system to getExecResult,
    system is the deprecated function in iOS 11
44
  * correct function skiplist_iterator in skiplist.h
Y
YuQing 已提交
45
  * add buffered_file_writer.[hc]
Y
YuQing 已提交
46
  * add function fc_delete_file_ex
47

Y
YuQing 已提交
48
Version 1.42  2019-12-03
Y
YuQing 已提交
49
  * add function get_gzip_command_filename
Y
YuQing 已提交
50
  * function create_work_threads changed
51

52
Version 1.41  2019-09-30
53 54
  * change CIDR network_bits range from [16, 32) to [10, 32)
  * ini_file_reader.c: fix empty string compare
Y
YuQing 已提交
55
  * multi_socket_client.c: code refine
Y
YuQing 已提交
56
  * sockopt.[hc] support IPv6
57

Y
YuQing 已提交
58
Version 1.40  2018-11-09
59
  * add function conn_pool_parse_server_info and conn_pool_load_server_info
Y
yuqing 已提交
60 61
  * support directive: #@add_annotation, for example:
    #@add_annotation CONFIG_GET /usr/lib/libshmcache.so /etc/libshmcache.conf
62
  * add function fc_split_string and fc_match_delim
63
  * add json_parser.[hc] for parse json array and map
Y
yuqing 已提交
64
  * add function fc_strdup
Y
YuQing 已提交
65
  * add function fc_memmem
Y
YuQing 已提交
66
  * add function format_http_date
Y
YuQing 已提交
67
  * add function hash_find1 and hash_find2
68
  * add function resolve_path and fast_buffer_append_file
Y
YuQing 已提交
69 70
  * add function id_generator_next_extra_ptr, with NULL pointer to set
    extra data to sn % (1 << extra_bits)
71

72
Version 1.39  2018-07-31
Y
YuQing 已提交
73 74
  * add #@function REPLACE_VARS
  * #@set value can embed %{VARIABLE}
75
  * shared_func.h: add function starts_with and ends_with
76
  * common_blocked_queue.h: add function common_blocked_queue_try_pop
Y
yuqing 已提交
77
  * sched_thread.c: fix first schedule time
78
  * ini_file_reader add function iniGetRequiredStrValueEx
Y
yuqing 已提交
79
  * add file fc_list.h
80
  * sockopt.c: add global variable try_again_when_interrupt
Y
yuqing 已提交
81

82
Version 1.38  2018-06-26
83 84
  * connection_pool.c: set err_no to 0 when success
  * shared_func.h: add functions float2buff / buff2float, double2buff / buff2double
85
  * logger.h: add function log_get_level_caption
Y
yuqing 已提交
86
  * add files: common_blocked_queue.[hc]
Y
yuqing 已提交
87
  * add files: multi_socket_client.[hc]
88
  * ioevent.[hc]: remove care_events in FreeBSD or MacOS
89
  * add skiplist_set.[hc] and skiplist bug fixed
Y
yuqing 已提交
90
  * correct CRC32
91
  * shared_func.h: add functions int2str and long2str
92
  * sched_thread.h: add function sched_print_all_entries
93

94 95 96 97 98
Version 1.37  2018-02-24
  * ini_file_reader.c function annotations LOCAL_IP_GET support index, such as:
   #@function LOCAL_IP_GET
    bind_addr=private[0]

Y
yuqing 已提交
99 100 101
Version 1.36  2017-03-08
  * correct getFileContentEx read bytes

Y
yuqing 已提交
102
Version 1.35  2017-03-02
103
  * logger judge log_level in function log_it_ex and log_it_ex1
104
  * add php extension function: fastcommon_file_put_contents
105
  * add function fc_safe_read and fc_safe_write
Y
yuqing 已提交
106
  * add function fc_ftok
107
  * add function fc_trim to avoid conflict with trim
108
  * ini_file_reader support annotataion map set incrementally
109
  * init context support dynamic annotations and build-in annotations
Y
yuqing 已提交
110
  * ini_file_reader disable shell execute in default
111

112
Version 1.34  2017-02-06
113
  * ini_file_reader: LOCAL_IP support CIDR addresses
114 115
  * ini_file_reader: return the last when get single value,
    such as iniGetStrValue and iniGetIntValue
116
  * ini_file_reader support #@set directive
117
  * ini_file_reader use extra context for compatible
118

Y
yuqing 已提交
119
Version 1.33  2017-01-04
Y
yuqing 已提交
120
  * add function hash_get_prime_capacity
Y
yuqing 已提交
121
  * refine getFileContent log info
Y
yuqing 已提交
122
  * show resource label when setrlimit fail
Y
yuqing 已提交
123

Y
yuqing 已提交
124 125 126
Version 1.32  2016-12-01
  * downgrade log level from warning to debug

127
Version 1.31  2016-11-26
128
  * move SET_SOCKOPT_NOSIGPIPE from sockopt.c to sockopt.h
Y
yuqing 已提交
129
  * add function get_time_item_from_str
Y
yuqing 已提交
130
  * add file trylock functions
131
  * add files: char_converter.h and char_converter.c
132
  * add files: char_convert_loader.h and char_convert_loader.c
133

Y
yuqing 已提交
134
Version 1.30  2016-10-31
Y
yuqing 已提交
135
  * modify php-fastcommon/test.php
136
  * php7_ext_wrapper.h: fix memory leak in php 7
Y
yuqing 已提交
137
  * setsockopt SO_NOSIGPIPE when nessary
Y
yuqing 已提交
138
  * add function iovent_add_to_deleted_list
Y
yuqing 已提交
139
  * fixbug for select with microseconds
Y
yuqing 已提交
140
  * id generator support file mode
Y
yuqing 已提交
141

Y
yuqing 已提交
142
Version 1.29  2016-06-17
Y
yuqing 已提交
143
  * ini_file_reader support #@if
Y
yuqing 已提交
144
  * ini_file_reader support #@for
Y
yuqing 已提交
145
  * add function id_generator_get_timestamp
Y
yuqing 已提交
146

147
Version 1.28  2016-06-08
Y
yuqing 已提交
148
  * id generator support extra bits
Y
yuqing 已提交
149
  * change inet_aton to inet_pton
150
  * connect by ip and connection pool support ipv6
151
  * id generator in php extension support multi instance
Y
yuqing 已提交
152
  * add function http_parse_url_params
153
  * check g_free_queue.head == NULL before free_queue_realloc()
Y
yuqing 已提交
154

Y
yuqing 已提交
155
Version 1.27  2016-04-15
Y
yuqing 已提交
156
  * add function fd_set_cloexec
Y
yuqing 已提交
157
  * php-fastcommon.spec.in support PHP 7
Y
yuqing 已提交
158
  * add file lock and unlock functions
Y
yuqing 已提交
159
  * add id generator for multi processes
Y
Yuqing 已提交
160
  * php extension support id generator
Y
yuqing 已提交
161

162 163 164
Version 1.26  2016-03-16
  * add logger parameter: compress_log_days_before

Y
yuqing 已提交
165
Version 1.25  2016-03-01
166
  * php7_ext_wrapper.h add more macro defines
Y
Yu Qing 已提交
167
  * compile passed in FreeBSD 10.2
168
  * bugfixed: free task point correctly in free_queue_destroy
Y
yuqing 已提交
169
  * logger support compress the log file
Y
yuqing 已提交
170

171
Version 1.24  2016-02-15
Y
Yu Qing 已提交
172
  * php extension compiled on PHP 7
Y
yuqing 已提交
173
  * add skiplist which support stable sort
Y
yuqing 已提交
174
  * make.sh: use sed to replace perl
Y
yuqing 已提交
175
  * support get local mac addresses
Y
yuqing 已提交
176
  * add system_info.h and system_info.c
Y
yuqing 已提交
177
  * add function get_mounted_filesystems
Y
yuqing 已提交
178
  * add function get_processes for Linux
179
  * ini_file_reader add iniGetSectionNames and iniGetSectionItems
Y
yuqing 已提交
180
  * add fast_blocked_queue.[hc]
Y
yuqing 已提交
181
  * iovent bug fixed for FreeBSD
Y
Yu Qing 已提交
182
  * sysinfo for FreeBSD
183
  * add php7_ext_wrapper.h for php7 migration
Y
Yu Qing 已提交
184

Y
yuqing 已提交
185
Version 1.23  2015-11-16
186
  * sched_thread.c: task can execute in a new thread
Y
yuqing 已提交
187
  * sched_thread.c: support delay tasks
188
  * add function get_current_time_us and get_current_time_ms
Y
yuqing 已提交
189
  * mblock add stat function
Y
yuqing 已提交
190 191
  * add function get_sys_total_mem_size and get_sys_cpu_count,
    ONLY support Linux and FreeBSD
Y
yuqing 已提交
192
  * delay task can execute in a new thread
Y
yuqing 已提交
193
  * fast_mblock reclaimed object pool
Y
Yu Qing 已提交
194
  * add fast_allocator
Y
Yu Qing 已提交
195
  * add fast_buffer
196

197
Version 1.22  2015-10-10
198
  * export php function: fastcommon_get_first_local_ip
Y
yuqing 已提交
199 200
  * add function is_private_ip
  * add function get_next_local_ip
201
  * export php function: fastcommon_get_next_local_ip
202
  * export php function: fastcommon_is_private_ip
203

Y
yuqing 已提交
204
Version 1.21  2015-09-14
205
  * ini_file_reader support annotation function
Y
yuqing 已提交
206 207
  * correct PTHREAD_MUTEX_ERRORCHECK define
  * support 32 bit OS
208
  * allow_ips support CIDR addresses such as 172.16.12.0/22
Y
yuqing 已提交
209
  * add function get_first_local_ip
Y
yuqing 已提交
210
  * ioevent for BSD ok
Y
yuqing 已提交
211
  * iniGetValues use iniGetValuesEx
212

Y
yuqing 已提交
213 214 215
Version 1.20  2015-08-06
  * add GEO function get_line_distance_km

Y
yuqing 已提交
216 217 218
Version 1.19  2015-07-24
  * correct logger rotate time near 0 clock

Y
yuqing 已提交
219 220 221 222 223
Version 1.18  2015-07-15
  * OS macro defines put in _os_define.h
  * remove file _os_bits.h
  * schedule task support second field

224
Version 1.17  2015-07-14
225
  * ini_file_reader.c change PJWHash to Time33Hash and increase capacity
226
  * ini_file_reader.c realloc change to malloc and memcpy
227

Y
yuqing 已提交
228
Version 1.16  2015-07-01
Y
yuqing 已提交
229
  * fast_mblock add fast_mblock_delay_free
Y
yuqing 已提交
230
  * add fast_mpool.h and fast_mpool.c
Y
yuqing 已提交
231

232
Version 1.15  2015-06-16
233 234
  * fast_mblock.c support none lock
  * ioevent support set timeout
235 236
  * fast_mblock support alloc and free object
  * ini_file_reader set global section before and after directive #include
237

Y
yuqing 已提交
238
Version 1.14  2015-06-12
Y
yuqing 已提交
239 240 241
  * fast_task_info support set_buffer_size and realloc_buffer
  * use file lock when write logger header
  * bugfixed: sockopt.c correct fsbytes to sbytes in FreeBSD
242
  * macro FDFS_WRITE_BUFF_SIZE change to FAST_WRITE_BUFF_SIZE
Y
yuqing 已提交
243
  * logger.c call log_check_rotate in lock
244
  * bug fixed: log header correctly when rotate
Y
yuqing 已提交
245

Y
yuqing 已提交
246
Version 1.13  2015-02-27
Y
yuqing 已提交
247
  * support php extension
248
  * php extention export simple_hash and time33_hash
Y
yuqing 已提交
249
  * set_run_by log more info
Y
yuqing 已提交
250

251 252
Version 1.12  2014-12-05
  * bug fixed: must check the return value of vsnprintf
253
  * can call sched_add_entries many times before schedule
254

Y
yuqing 已提交
255
Version 1.11  2014-11-20
Y
yuqing 已提交
256
  * remove usleep call in logger.c
Y
yuqing 已提交
257
  * bug fixed: NOT set last_block->next when realloc
Y
yuqing 已提交
258

259
Version 1.10  2014-10-31
Y
yuqing 已提交
260
  * correct iovent macro define
261
  * must set timeout entry's dlink to NULL because NOT in time wheel
Y
yuqing 已提交
262

Y
yuqing 已提交
263
Version 1.09  2014-10-26
Y
yuqing 已提交
264
  * Version struct add variable: patch
265
  * get local ipaddr support interface based 1
Y
yuqing 已提交
266
  * mblock support alloc_init_func
Y
yuqing 已提交
267

Y
yuqing 已提交
268
Version 1.08  2014-10-09
269
  * sched_thread.c: calculate next_call_time correctly
Y
yuqing 已提交
270

271
Version 1.07  2014-09-16
Y
yuqing 已提交
272
  * increment alloc task buffer
Y
yuqing 已提交
273
  * add function free_queue_alloc_connections
274
  * check file size before log access header
275
  * conn_pool_destroy close connections and free memory
276
  * delete log old files with any time format affix
Y
yuqing 已提交
277

Y
yuqing 已提交
278
Version 1.06  2014-08-27
Y
yuqing 已提交
279
  * update source code from FastDFS V5.02
Y
yuqing 已提交
280
  * add function short2buff and buff2short
Y
yuqing 已提交
281
  * add object memory pool (fast_mblock.h and fast_mblock.c)
282
  * add member thread_loop_callback in nio_thread_data
283 284 285
  * bug fixed: ini_file_reader.c can't include relative path sub config,
    such as #include ../../conf/common.conf
  * add get_url_content_ex to support buffer passed by caller
Y
yuqing 已提交
286
  * logger can set rotate time format
Y
yuqing 已提交
287
  * add connection pool
Y
yuqing 已提交
288
  * logger can log header line
Y
yuqing 已提交
289
  * #include <stdbool.h> to use C99 bool
Y
yuqing 已提交
290
  * add libfastcommon.spec for building RPM
Y
yuqing 已提交
291
  * logger can delete old rotated files
292
  * bug fixed: connection pool should NOT increase counter when connect fail
Y
yuqing 已提交
293
  * logger.c do NOT call fsync after write
294
  * sockopt.c add tcprecvdata_nb_ms to support millisecond timeout
Y
yuqing 已提交
295
  * change req_count from int to int64_t
Y
yuqing 已提交
296 297 298 299
  * logger can take over stderr and stdout
  * replace INT64_PRINTF_FORMAT with PRId64
  * support OS Darwin
  * socket send and recv ignore erno EINTR
300
  * http_parse_query_ex support binary buffer, and set both lengths of key and name
Y
yuqing 已提交
301
  * add function ioevent_remove
Y
yuqing 已提交
302
  * add function log_reopen_ex
Y
yuqing 已提交
303
  * extern function log_rotate
Y
yuqing 已提交
304
  * add function log_set_fd_flags
Y
yuqing 已提交
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328

Version 1.05  2012-07-08
  * update source code from FastDFS V3.09

Version 1.04  2011-01-31
  * update source code from FastDFS V2.08

Version 1.03  2010-11-16
  * add local ip functions local_ip_func.c

Version 1.02  2010-07-02
  * sockopt.c: tcprecvfile and tcpdiscard add parameter total_recv_bytes
  * sockopt.h add non-block connect function connectserverbyip_nb
  * log_init set log to cache to false (no cache)

Version 1.01  2010-05-15
  * source file move to directory src
  * header files add comments
  * logger.h: correct function name from log_destory_ex to log_destroy_ex
  * shared_func.h: getExeAbsolutePath change to getAbsolutePath

Version 1.00  2010-05-08
  * first version