Commit Graph

828 Commits

Author SHA1 Message Date
bac0b8dc27 ci: Use reusable workflow for luarocks deploy 2022-03-24 18:14:43 +03:00
2de8ddfbb8 Merge remote-tracking branch 'upstream/master' into test-builds 2022-03-24 18:11:07 +03:00
5ed8b66e6d ci: Utilize new upstream Luacheck Action (#367) 2022-03-24 13:22:31 +01:00
78d2cbfdee Merge pull request #366 from lunarmodules/54 2022-03-23 17:17:49 +01:00
d9c08114da chore; add Lua 5.4 to make files 2022-03-23 17:11:43 +01:00
58f94e47d2 Update LICENSE to be recognizable as MIT (#363) 2022-03-23 15:12:49 +03:00
af0ddb6ea8 Merge pull request #361 from lunarmodules/docs 2022-03-23 07:55:45 +01:00
2eac895039 Update URL references to source repository 2022-03-23 00:16:23 +03:00
f98977b2da Move doc→docs so we can serve it with GitHub Pages 2022-03-23 00:11:24 +03:00
c1eacfa6d2 fix(docs) references to some constants added (#359) 2022-03-22 21:24:38 +03:00
f97dc8489d fix(docs) fix html linter issues in the docs (#358) 2022-03-22 21:21:58 +03:00
f9e1d03f3c ci: Don't bother doing user-local install in ephemeral runner 2022-03-22 15:53:22 +03:00
52c72694c2 ci: Disable unsupported Windows and avoid duplicate runs 2022-03-22 15:53:22 +03:00
9787c17e58 ci: Expand test matrix to cover Windows and macOS 2022-03-22 15:53:22 +03:00
fdd741da5c Ci: Run regression tests after successful build 2022-03-22 15:53:21 +03:00
d3434c0198 Merge pull request #318 from tokenrove/transfer-encoding-chunked 2022-03-22 09:39:02 +01:00
2a76cb906c http.lua: set transfer-encoding if source and no content-length
If a source is specified without a content-length header, LuaSocket
sends the data in the chunked transfer coding; however, it doesn't set
the transfer-encoding header.  While I recognize that the user can set
this manually, this is a gotcha that has caught me multiple times.

RFC7230, section 3.3.3
  (https://tools.ietf.org/html/rfc7230#section-3.3.3)
is clear about this; if neither content-length nor transfer-encoding
chunked are specified, the request message body length is zero.  While
some servers may ignore this, I have encountered several that follow
the RFC in this regard, most recently golang's net/http.
2022-03-22 09:38:14 +01:00
e178b1e018 Update URLs in (and to) SCM rockspec, start an epoch #355 2022-03-22 09:34:30 +01:00
642433e771 Merge pull request #275 from ewestbrook/vcxproj-mime-socket 2022-03-22 09:30:25 +01:00
e3c17b002a Add src\compat.c to mime.vcxproj and socket.vcxproj 2022-03-22 09:29:04 +01:00
b57ca9bfa3 Merge pull request #351 from jyoui/patch-1 2022-03-21 11:08:48 +01:00
46ecb7e2dc src/ltn12.lua: remove duplicated codes 2022-03-21 11:07:26 +01:00
2cc6f8a55c ci: Add workflow to confirm build completes 2022-03-19 21:05:22 +03:00
844165ff89 ci: Drop obsolete Travis configs 2022-03-19 18:24:15 +03:00
91aa6522a0 chore: Drop rockspec for never-published RC2 release 2022-03-19 18:20:52 +03:00
335f647075 chore: Add current most recent rockspec as published 2022-03-19 18:20:05 +03:00
36428e07cd chore: Rename rockspec dir to be plural 2022-03-19 18:01:53 +03:00
d0f2d132bf chore: Move SCM rockspec to root and bump rockrel to 3 2022-03-19 18:01:53 +03:00
a36818d3f3 Merge pull request #354 from lunarmodules/linter 2022-03-19 17:42:53 +03:00
8390d07774 chore: Bump Lua version used in linter 2022-03-19 17:34:28 +03:00
989a5b1131 chore: Include luacheck config in editorconfig setup 2022-03-19 17:28:25 +03:00
601ad8d59f refactor: Address issues raised by linter 2022-03-19 17:13:15 +03:00
480c052572 ci: Add workflow to run luacheck linter 2022-03-19 17:13:15 +03:00
f6509d4fd5 chore: Add luacheck linter project configuration 2022-03-19 17:13:15 +03:00
52b22da7e3 chore: Add editorconfig setup file 2022-03-19 17:05:43 +03:00
6952262e6a style: Use C-style comment syntax throughout (#309)
Co-authored-by: Denise Cullassnekuff <19711487+BlackCutpoint@users.noreply.github.com>
2022-03-18 17:54:11 +03:00
d9cc531e3b Fixe an issue with aux buffer init overwriting optional parameters in receive() (#334)
Fixes use on Lua >= 5.4.3
2022-03-18 12:23:09 +03:00
5b18e475f3 test/find-connect-limit: add missing "socket =" 2020-03-28 22:21:23 +00:00
743a5f1bcf test/udp-zero-length-send-recv: add missing "socket ="; use shebang "#!/usr/bin/env lua" 2020-03-28 22:21:23 +00:00
a7baf8dc25 test/udp-zero-length-send: add missing "socket ="; use shebang "#!/usr/bin/env lua" 2020-03-28 22:21:23 +00:00
c8b4fdf858 test/getoptions: guard calls with pcall(); check result of getoption"linger" 2020-03-28 22:21:23 +00:00
84e5336e8b test/tcp-getoptions: bugfix: missing "socket =" in require"socket" 2020-03-28 22:21:23 +00:00
78a1657c7d src/makefile: remove -DLUASOCKET_INET_PTON as current mingw builds don't want it 2020-03-28 16:46:49 +00:00
b0470f4a0e Receive line with ending 2020-01-17 12:17:32 +10:00
c27c23074c TCP Receive without *
The TCP Receive code now uses a switch statement and allows dropping the * at the start of the string, like Lua's io library
2020-01-17 12:08:54 +10:00
733af884f1 Merge pull request #280 from ewestbrook/rockspec-scm
SCM rockspec housekeeping
2019-04-22 00:27:05 -03:00
ab3b0ef5c9 rockspec/luasocket-scm-2.rockspec 2019-04-21 09:41:17 -06:00
9acb6dc81a move SCM rockspec to rockspec folder; rename consistent with luarocks repository 2019-04-21 09:31:08 -06:00
c89a931cc3 Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
2019-03-11 00:08:41 -03:00
21514304be wrap visibility pragmas in #ifndef _WIN32 2019-03-10 00:04:20 -07:00