Skip to content

Commit

Permalink
change ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuizhuhaomeng committed Mar 24, 2024
1 parent 808addf commit e07b309
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ install:
- git clone https://github.com/openresty/openresty.git ../openresty
- git clone https://github.com/openresty/openresty-devel-utils.git
- git clone https://github.com/simpl/ngx_devel_kit.git ../ndk-nginx-module
- git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module
- git clone -b cdata2 https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module
- git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx
- git clone https://github.com/openresty/echo-nginx-module.git ../echo-nginx-module
- git clone https://github.com/openresty/lua-resty-lrucache.git
Expand All @@ -79,7 +79,7 @@ install:
- git clone https://github.com/openresty/set-misc-nginx-module.git ../set-misc-nginx-module
- git clone https://github.com/openresty/mockeagain.git
- git clone https://github.com/openresty/test-nginx.git
- git clone https://github.com/openresty/stream-lua-nginx-module.git ../stream-lua-nginx-module
- git clone -b cdata2 https://github.com/openresty/stream-lua-nginx-module.git ../stream-lua-nginx-module

script:
- cd luajit2/
Expand Down
16 changes: 12 additions & 4 deletions lib/resty/core/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,19 @@ end


do
local tcp_method_table = registry.__tcp_cosocket_mt
tcp_method_table.send_cdata = tcp_send_cdata
local tcp_mt = registry.__tcp_cosocket_mt
tcp_mt.send_cdata = tcp_send_cdata

local udp_method_table = registry.__udp_cosocket_mt
udp_method_table.send_cdata = udp_send_cdata
local raw_tcp_mt = registry.__raw_req_tcp_cosocket_mt
raw_tcp_mt.send_cdata = tcp_send_cdata

local udp_mt = registry.__udp_cosocket_mt
udp_mt .send_cdata = udp_send_cdata

if subsystem == "stream" then
local raw_udp_mt = registry.__raw_udp_cosocket_mt
raw_udp_mt.send_cdata = udp_send_cdata
end
end


Expand Down

0 comments on commit e07b309

Please sign in to comment.