diff --git a/CMakeLists.txt b/CMakeLists.txt index 44d2ec3c7ee..1acfb698fb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ PROJECT(libswoole) ENABLE_LANGUAGE(ASM) -SET(SWOOLE_VERSION 4.2.10) +SET(SWOOLE_VERSION 4.2.11) SET(SWOOLE_CLFLAGS pthread rt dl ssl crypt crypto nghttp2) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") diff --git a/include/swoole.h b/include/swoole.h index 561ac879087..b886a043ae3 100644 --- a/include/swoole.h +++ b/include/swoole.h @@ -88,8 +88,8 @@ int clock_gettime(clock_id_t which_clock, struct timespec *t); #define SWOOLE_MAJOR_VERSION 4 #define SWOOLE_MINOR_VERSION 2 #define SWOOLE_RELEASE_VERSION 11 -#define SWOOLE_EXTRA_VERSION "beta" -#define SWOOLE_VERSION "4.2.11-beta" +#define SWOOLE_EXTRA_VERSION "" +#define SWOOLE_VERSION "4.2.11" #define SWOOLE_VERSION_ID 40211 #define SWOOLE_BUG_REPORT \ "A bug occurred in Swoole-v" SWOOLE_VERSION ", please report it.\n"\ diff --git a/package.xml b/package.xml index 65b349b27de..6b2499640a3 100644 --- a/package.xml +++ b/package.xml @@ -36,10 +36,10 @@ shenzhe163@gmail.com yes - 2018-12-20 + 2018-12-28 - 4.2.10 + 4.2.11 4.0 @@ -48,35 +48,20 @@ Apache2.0 - + Refactor Coroutine Http Client, developers no longer need to care if the connection is broken unless the network is abnormal (auto reconncet) - + The coroutine switch adds some operations, Because PDO changes the global error handler at IO request time - + Support for creating coroutines using internal C functions - + Allow closed sockets across coroutines - + Improve server-side SSL certificate verification - + Enhanced coroutine iterators and stack traces - * swoole_event_wait is always in the first place in the shutdown function list (#2144) - * Unset properties of built-in objects are not allowed, otherwise coredump may be raised - * For most built-in classes, clone and serialization are not allowed. - * Enhanced coroutine redis, now it can use setOption to adjust the configuration after connecting and auto-reconnect like phpredis - * Fixed task wait memory leak - * Fixed epoll error core dump when waiting for writable event on coroutine socket - * Unified coroutine socket timeout (see: https://wiki.swoole.com/wiki/page/p-socket_timeout.html) - * More friendly warning info - * Fixed the enable coroutine bug in the task process - * Fixed defer function not executed when meet exception - * Fixed an bug about the global buffer was not copied when the write yield - * Fixed Http proxy (#2195) (#2205) - * Fixed Channel push timeout bug (#2226) - * Fixed Http Client websocket mask (#2206) - * Fixed atomic wait in MacOS (#2198) - * Fxied MySQL client recv huge data more than the max length of a single package (#2208) (57fc849) (76179fa) - * Fixed swoole_get_local_mac not supported on macOS (#2199) - * Fixed php_http_parser bug when meet the wrong header name (5e91557) - * The default sock property value is -1 (0 is STDIN) - - Remove the short name of Co\Server, This name is reserved for future coroutine services - - All asynchronous classes are marked as deprecated - - Remove Timer maximum time limit - - It is not allowed to fork a process in a coroutine + + Support Timer in manager processes + + Added DNS cache to improve the connection speed of external network services, default TTL60s, capacity 1000 (#2250) + + When swoole_strerror the second param is 9, it will convert the swoole-specific error code into the text + * Fixed the problem that the connection timeout does not take effect after the client triggers the DNS query. It may cause the coroutine to hang for a long time and connection resource occupation, please update the affected version + (v4.2.10) as soon as possible + * Restore Co\Client backward compatibility, connect timeout parameter will change the default timeout of the client + * Fixed the problem that the change does not take place immediately when the client calls the `set` method after the connection + * Fixed the problem that the error code was not updated after the MySQL handshake failed (#2234) + * Fixed a memory error caused by buffer expansion when MySQL executed a large amount of data (e3c5a28) + * Fixed static compilation problem (#2230) + * Async write files to increase the reference count to prevent premature shutdown (028ddf4) + * Fixed Redis Client use illegal parameter would lead to coredump (5af9f3d) + * Fixed the bug that `stack_size` set by `Co::set` is set to the page size of the PHP stack. It is recommended to use the configuration name of `c_stack_size`. Please do not set it without knowing. If your application has C extension hook to zend_execute, you need to pay special attention to setting the C stack, or you don't need to set it + - Remove `enable-debug-log` from PECL compilation configure option, kernel debug logs must be compiled manually to enable @@ -118,6 +103,7 @@ + @@ -365,6 +351,7 @@ + @@ -464,6 +451,7 @@ + @@ -610,8 +598,8 @@ + - @@ -733,11 +721,14 @@ + + + @@ -778,6 +769,8 @@ + + @@ -785,6 +778,7 @@ + @@ -809,10 +803,12 @@ + + @@ -836,6 +832,7 @@ + @@ -844,6 +841,7 @@ + @@ -998,6 +996,7 @@ + @@ -1016,6 +1015,7 @@ + @@ -1171,6 +1171,7 @@ + @@ -1184,6 +1185,7 @@ + @@ -1192,6 +1194,7 @@ + @@ -1314,6 +1317,8 @@ + +