We use lua-resty-websocket to create websocket server: https://github.com/openresty/lua-resty-websocket And we see in log file: Solution: chunk data then send each chunk: We use some value…
Read more: https://tools.ietf.org/id/draft-bryan-ftp-range-03.html We use extension library luasocket Edit file: https://github.com/lunarmodules/luasocket/blob/master/src/ftp.lua Local location: /usr/share/lua/5.1/socket/ftp.lua Add function: Edit function tget , add line if gett.rang then…
Case 1: client_body_in_file_only off; Case 2: client_body_in_file_only clean; client_body_in_file_only on; We recommend using client_body_in_file_only clean; and read binary file when PUT content of file to…
Lua snippet: copy file Source: https://forum.cockos.com/showpost.php?&p=2360581&postcount=3 In this snippet we see method to get file size: new_file_sz = new_file:seek( "end" )
Sample code: Check log: tail /var/log/nginx/error.log Reason: lua-resty-string v0.15 remove EVP_CIPHER_CTX_init Check here Check version in file: /usr/local/share/lua/5.1/resty/string.lua lua-resty-string Version 0.09 You must update to…
Example error: Fix: run this command first: git config --global url."https://".insteadOf git:// Done, retry: now, we have two files xmodem.lua rediscluster.lua in folder /usr/local/share/lua/5.1/resty/