Releases: zhaojh329/lua-eco
Releases · zhaojh329/lua-eco
v3.6.1
Features
- ip: Check the mac address format in
link.set
(Jianhui Zhao) - add a new module
channel
similar to Golang's channel (Jianhui Zhao) - set so version for libeco.so (Jianhui Zhao)
- bump version 3.6.0 (Jianhui Zhao)
Bug Fixes
- call
uloop_done
afterubus_connect_ctx
(Jianhui Zhao) - Fix link libraries in CMakeLists (Jianhui Zhao)
v3.6.0
Features
- socket: Enhance support for
AF_PACKET
(Jianhui Zhao) - socket: Add some constants for ICMP and ICMPv6 (Jianhui Zhao)
- socket: Add constant
ICMP_REDIRECT
for ICMP (Jianhui Zhao) - socket: Add some constants
ARPHRD_*
(Jianhui Zhao) - packet: Add module for low-level packet construction and parsing (Jianhui Zhao)
- bump version 3.6.0 (Jianhui Zhao)
Bug Fixes
- eco: Fix parse args for script (Jianhui Zhao)
- socket: check whether the device exists in
bind
method (Jianhui Zhao) - ip-link: add
type
field inlink_get
(Jianhui Zhao) - examples: Print the IP address of the real peer (Jianhui Zhao)
Styles
- fix
eco.c
(Jianhui Zhao)
Chores
- examples: Move ping examples to icmp subfolder (Jianhui Zhao)
v3.5.3
Features
- nl80211: add support passive scan (Jianhui Zhao)
- socket: bind
htonl
,htons
,ntohl
,ntohs
(Jianhui Zhao) - bump version 3.5.3 (Jianhui Zhao)
Bug Fixes
- nl80211: Fixed a variable name written incorrectly (Jianhui Zhao)
- rtnl: Add Linux kernel version check for IFA_RT_PRIORITY (Jianhui Zhao)
Continuous Integration
- build on pull_request (Jianhui Zhao)
v3.5.2
Features
- bufio: add support return partial data received (Jianhui Zhao)
- sync: add return value for cond:signal and cond:broadcast (Jianhui Zhao)
- add support
lightuserdata
forstack_dump
(Jianhui Zhao) - bump version 3.5.2 (Jianhui Zhao)
Bug Fixes
- close socket when returned from function. (Jianhui Zhao)
- log: Fix set log path abnormal (Jianhui Zhao)
Commits
- af8d9da: fix(ssl) see zhaojh329/ssl/pull/7 (Jianhui Zhao)
v3.5.1
Features
- file: add support linux inotify (Jianhui Zhao)
Bug Fixes
- file: remove unused require for 'bufio' (Jianhui Zhao)
Performance Improvements
- improve random seed (Jianhui Zhao)
v3.5.0
Features
- bump version 3.5.0 (Jianhui Zhao)
Bug Fixes
- http: Fix parse HTTP/1.0 in
recv_status_line
(Jianhui Zhao) - ssl: Add compatibility with Mbed TLS 3.0.0 (Jianhui Zhao)
Code Refactoring
- mqtt: reimplemented in pure lua (Jianhui Zhao)
Performance Improvements
- Reduce the memory usage (Jianhui Zhao)
Chores
- examples: Adjust the directory organizational structure (Jianhui Zhao)
v3.4.1
Features
- bump version 3.4.1 (Jianhui Zhao)
Bug Fixes
- socket: fix panic while send on a closed socket. (Jianhui Zhao)
- md5: Add some header file and macro for MD5. (Jianhui Zhao)
v3.4.0
Features
- Add an example for icmp6 (Jianhui Zhao)
- socket: add support multicast (Jianhui Zhao)
- socket: Add support send and recv in a socket concurrently (Jianhui Zhao)
- socket: automatically detects the IP address type for connect (Jianhui Zhao)
- bump version 3.4.0 (Jianhui Zhao)
Bug Fixes
- examples: fix typo (Jianhui Zhao)
- ip: Fix parse ipv6 address (Jianhui Zhao)
- socket:
ev_io
andev_timer
should be stoped inclose
. (Jianhui Zhao) - http.client: remove unnecessary code (Jianhui Zhao)
- log: Fix compilation with musl libc 1.2.5 (Jianhui Zhao)
- socket: Fix return value of
send
andsendfile
(Jianhui Zhao) - socket: force schedule lua coroutine in
send
function. (Jianhui Zhao)
Performance Improvements
- ubus: use ligh userdata instead of userdata for alloc defered request. (Jianhui Zhao)
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)