Releases: zhaojh329/lua-eco
Releases · zhaojh329/lua-eco
v3.3.0
Features
- sys: add a new method
spawn
to spawn process (Jianhui Zhao) - sys: add a new method
get_nprocs
bindingget_nprocs
(Jianhui Zhao) - examples: add an example for http server using multiiprocess (Jianhui Zhao)
- ubus: support automatically reconnect (Jianhui Zhao)
- log: Use Space to replace tab to split multiple arguments (Jianhui Zhao)
- socket: add support set socket option
SO_MARK
(Jianhui Zhao) - dns: add an option
mark
to set SO_MARK (Jianhui Zhao) - http: add an option
mark
to set SO_MARK (Jianhui Zhao) - dns: add an option
device
to set SO_BINDTODEVICE (Jianhui Zhao) - http: add an option
device
to set SO_BINDTODEVICE (Jianhui Zhao) - http: add an option
nameservers
to query dns (Jianhui Zhao) - dns: only use the nameservers from
opts
if provided. (Jianhui Zhao) - bump version 3.3.0 (Jianhui Zhao)
Bug Fixes
- dns: do not panic when parse
/etc/resolv.conf
fail (Jianhui Zhao) - ip: Fix panic while parse
IFLA_MASTER
(Jianhui Zhao) - http: read body if no headers of
chunked
andcontent-length
(Jianhui Zhao) - dns: delete duplicate variable definition (Jianhui Zhao)
- dns: use
127.0.0.1
if not found dns from/etc/resolv.conf
(Jianhui Zhao)
Code Refactoring
- socket: embed
ipv6
parameters in options (Jianhui Zhao) - socket: remove some wrap methods for inet6 (Jianhui Zhao)
Performance Improvements
- mqtt: use
mosquitto_strerror
forON_DISCONNECT
(Jianhui Zhao)
Chores
- url: Remove unnecessary parentheses (Jianhui Zhao)
- ubus: move
tmr
toreq
instruct eco_ubus_context
(Jianhui Zhao)
v3.2.0
Features
- ssl: add method
sendfile
(Jianhui Zhao) - http: support post formdata (Jianhui Zhao)
- bump version 3.2.0 (Jianhui Zhao)
Bug Fixes
- http: remove unused variable declaration (Jianhui Zhao)
Code Refactoring
- refactoring the coroutine switching process using
yieldk
(Jianhui Zhao) - socket: use
path
insteadfd
as input parameter forsendfile
(Jianhui Zhao) - socket: do not return
offset
aim to simplifysendfile
(Jianhui Zhao)
Performance Improvements
- http: invoke
sendfile
to send body with file (Jianhui Zhao)
Chores
- fix redefine variable (Jianhui Zhao)
- bufio: Canonical C function name (Jianhui Zhao)
- fix redefine variable (Jianhui Zhao)
v3.1.2
Features
- ubus: support set timeout period for
call
(Jianhui Zhao) - log: add method to set ident (Jianhui Zhao)
- bump version 3.1.2 (Jianhui Zhao)
Bug Fixes
- ubus: stack overflow on ubus method ubus_method_handler (Jianhui Zhao)
- socket: fix parse unix abstract socket address (Jianhui Zhao)
Performance Improvements
- time: invoke
ev_now_update
fortime.now()
(Jianhui Zhao)
v3.1.1
Features
- bump version 3.1.1 (Jianhui Zhao)
Bug Fixes
- ssh: Compatible with libssh2-1.9 (Jianhui Zhao)
- ssh: support login without password (Jianhui Zhao)
- file: call sync via
exec
to avoid breaking the loop event. (Jianhui Zhao) - examples: fix calculate elapsed time in
ping.lua
(Jianhui Zhao)
Performance Improvements
- file: improve code for
eco_file_dir_iter
(Jianhui Zhao)
v3.1.0
Features
- file: add a field
mode
for methodstat
(Jianhui Zhao) - socket: support reads the next line keeping the end-of-line character (Jianhui Zhao)
- http: support parse formdata (Jianhui Zhao)
- ssh: Add new module
ssh
via bindlibssh2
(Jianhui Zhao) - bump version 3.1.0 (Jianhui Zhao)
Bug Fixes
- bufio: incorrectly use unsigned integer to compare with 0 (Jianhui Zhao)
- ssl: reading data timeout in some cases. (Jianhui Zhao)
v3.0.2
Features
- nl80211: add method
get_noise
(Jianhui Zhao) - bump version 3.0.2 (Jianhui Zhao)
Bug Fixes
- log: Incorrect use of the
openlog
function (Jianhui Zhao) - websocket: fix panic (Jianhui Zhao)
- time: one timer will be canceled by another timer. (Jianhui Zhao)
- fix set seed for random (Jianhui Zhao)
- fix CMake option name for ECO_MQTT_SUPPORT (Jianhui Zhao)
v3.0.1
Features
- bump version 3.0.1 (Jianhui Zhao)
Bug Fixes
- bufio: fix method of size (Jianhui Zhao)
- ubus: drop unused parameters for method
objects
(Jianhui Zhao) - ssl: close tcp socket immediately on ssl handshake fail (Jianhui Zhao)
Styles
- fix code style for log.c (Jianhui Zhao)
Performance Improvements
- bufio: reduce memory usage (Jianhui Zhao)
- ssl: reduce memory usage (Jianhui Zhao)
- sys: reduce memory usage (Jianhui Zhao)
- time: reduce memory usage of timer (Jianhui Zhao)
- ubus: reduce memory usage (Jianhui Zhao)
- websocket: reduce memory usage (Jianhui Zhao)
- sync: reduce memory usage (Jianhui Zhao)
- mqtt: reduce memory usage (Jianhui Zhao)
- socket: reduce memory usage (Jianhui Zhao)
- nl: reduce memory usage (Jianhui Zhao)
- http: reduce memory usage (Jianhui Zhao)
v3.0.0
Features
- use "closed" as error msg for
write
andsend
whenerrno
isEPIPE
(Jianhui Zhao) - dns: add a method
type_name
(Jianhui Zhao) - http: add an option
ipv6
for http request (Jianhui Zhao) - bump version 3.0.0 (Jianhui Zhao)
Bug Fixes
- nl80211: fix freq_to_channel due to lua5.3 (Jianhui Zhao)
- ubus: fix lua table to blob for integer (Jianhui Zhao)
- ubus: fix memory leak (Jianhui Zhao)
- http: close socket in
discard_body
on error occurs. (Jianhui Zhao) - dns: return correct error message in
parse_response
(Jianhui Zhao) - destroy default ev loop on exit. (Jianhui Zhao)
Code Refactoring
- force depends Liblua 5.3 (Jianhui Zhao)
- rename
eco.crypto.
toeco.hash.
(Jianhui Zhao) - http: split into 2 modules: client and server (Jianhui Zhao)
- http: More convenient to use of
http.client
(Jianhui Zhao)
Performance Improvements
- file: simplify the usage of
flock
(Jianhui Zhao) - http: improve handle connection upgraded to websocket. (Jianhui Zhao)
- socket: simplify error message returned (Jianhui Zhao)
Builds
- disable strict-aliasing (Jianhui Zhao)
Continuous Integration
- remove building with liblua5.4 (Jianhui Zhao)
Chores
- remove examples/struct.lua (Jianhui Zhao)
- examples: use https for http_server.lua (Jianhui Zhao)
- dns: pretty code in
parse_section
(Jianhui Zhao)
Commits
v2.5.1
Features
- bump version 2.5.1 (Jianhui Zhao)
Bug Fixes
- core: Timer working exception due to df21bd0 (Jianhui Zhao)
Performance Improvements
- pretty code (Jianhui Zhao)
v2.5.0
Features
- nl80211: add an example for setting interface (Jianhui Zhao)
- nl80211: add method to get nl80211 protocol features (Jianhui Zhao)
- nl80211: add method to get freqlist (Jianhui Zhao)
- example: perfect dns.lua (Jianhui Zhao)
- time: add a method
on
used to call func at an absolute time (Jianhui Zhao) - bump version 2.5.0 (Jianhui Zhao)
Bug Fixes
- base64: remove unused variable (Jianhui Zhao)
- base64: one more invalid byte in decode (Jianhui Zhao)
- sys: repeat close file in exec_methods:release (Jianhui Zhao)
Code Refactoring
- http: use method
remote_addr
to get remote addr (Jianhui Zhao) - time: add a new method
timer
(Jianhui Zhao)
Performance Improvements
- nl80211: pretty code (Jianhui Zhao)
- dns: drop redundant nil value judgment (Jianhui Zhao)
- dns: improve generate transaction id (Jianhui Zhao)
Chores
- ssl: sync from upstream (Jianhui Zhao)