Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix(http): Allow relative redirect on https (#395) | Henri D | 2022-10-08 | 1 | -0/+31 |
| | | | Location header can now be relative: https://httpwg.org/specs/rfc9110.html#field.location | ||||
* | refactor: Address issues raised by linter | Thijs Schreijer | 2022-03-19 | 9 | -146/+146 |
| | |||||
* | test/find-connect-limit: add missing "socket =" | E. Westbrook | 2020-03-28 | 1 | -1/+1 |
| | |||||
* | test/udp-zero-length-send-recv: add missing "socket ="; use shebang ↵ | E. Westbrook | 2020-03-28 | 1 | -2/+2 |
| | | | | "#!/usr/bin/env lua" | ||||
* | test/udp-zero-length-send: add missing "socket ="; use shebang ↵ | E. Westbrook | 2020-03-28 | 1 | -2/+2 |
| | | | | "#!/usr/bin/env lua" | ||||
* | test/getoptions: guard calls with pcall(); check result of getoption"linger" | E. Westbrook | 2020-03-28 | 1 | -4/+18 |
| | |||||
* | test/tcp-getoptions: bugfix: missing "socket =" in require"socket" | E. Westbrook | 2020-03-28 | 1 | -1/+1 |
| | |||||
* | Merge pull request #116 from linuxmaniac/master | Diego Nehab | 2019-02-24 | 1 | -1/+3 |
|\ | | | | | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | ||||
| * | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | Victor Seva | 2014-12-05 | 1 | -1/+3 |
| | | |||||
* | | url.lua:remove_dot_components(): use temporary NUL marker to reduce ↵ | E. Westbrook | 2018-08-21 | 1 | -0/+4 |
| | | | | | | | | empty-segment special-case code | ||||
* | | url.lua:remove_dot_components(): empty path component double-dot corner case | E. Westbrook | 2018-08-21 | 1 | -0/+1 |
| | | |||||
* | | url.lua:absolute_path(): ensure a separator between base_path and relative_path | E. Westbrook | 2018-08-21 | 1 | -1/+1 |
| | | |||||
* | | url.lua:remove_dot_components(): avoid overconsuming dot segments | E. Westbrook | 2018-08-21 | 1 | -0/+5 |
| | | |||||
* | | url.lua:remove_dot_components(): limit beginning-of-string double-dot corner ↵ | E. Westbrook | 2018-08-21 | 1 | -0/+1 |
| | | | | | | | | case to prevent triple-dot activation and authority collision | ||||
* | | url.lua: separate remove_dot_components() from absolute_path(); also use in ↵ | E. Westbrook | 2018-08-21 | 1 | -4/+4 |
| | | | | | | | | _M.absolute() even when not merging | ||||
* | | url.lua:absolute_path(): fix issue #254, simplify, add more test cases | E. Westbrook | 2018-08-19 | 1 | -1/+24 |
| | | |||||
* | | Add ltn12.source.table() | E. Westbrook | 2018-06-05 | 1 | -0/+9 |
| | | |||||
* | | fixed url parsing; postpone fragment parsing after authority parsing; added ↵ | Herbert Leuwer | 2017-11-22 | 1 | -3/+72 |
| | | | | | | | | | | | | test cases to test/urltest.lua fixed reference patterns in check_protect() to upper case hex letters | ||||
* | | Preserve path when parsing urls. | Diego Nehab | 2017-03-20 | 1 | -1/+1 |
| | | |||||
* | | rename unix.tcp to unix.stream, unix.udp to unix.dgram | enginix | 2016-12-25 | 4 | -5/+5 |
| | | |||||
* | | support datagram unix domain sockets | enginix | 2016-06-24 | 4 | -2/+20 |
| | | |||||
* | | Family agostic FTP and expose HTTP/FTP url parsing | Diego Nehab | 2016-03-07 | 1 | -11/+23 |
| | | |||||
* | | Don't swallow errors in finalizers. | Philipp Janda | 2016-02-24 | 1 | -1/+0 |
| | | |||||
* | | Add more tests for socket.try/protect | mpeterv | 2016-02-21 | 1 | -4/+29 |
| | | |||||
* | | Changed buffer-per-socket to buffer-per-operation. | Diego Nehab | 2015-10-06 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | This is a difficult tradeoff to measure. I think large datagrams won't be used very frequently. So it is better to not lock a large buffer to each socket object and instead allocate and deallocate for each operation receiving a datagram larger than UDP_DATAGRAMSIZE. | ||||
* | | Fixes suggested by @Florob in #147. | Diego Nehab | 2015-08-25 | 1 | -7/+12 |
| | | |||||
* | | New agnostic IPv4 IPv6 functions. | Diego Nehab | 2015-08-22 | 3 | -53/+51 |
| | | | | | | | | | | Also dealing with EPROTOTYPE Yosemite seems to be throwing at us for no reason. | ||||
* | | New compat.h module implements luaL_setfuncs. | Diego Nehab | 2015-08-21 | 1 | -1/+1 |
| | | | | | | | | Makes initialization code simpler everywhere. | ||||
* | | Out of the box support for Lua 5.3. | Diego Nehab | 2015-02-18 | 3 | -16/+20 |
|/ | |||||
* | support multiple filters in ltn12.{sink,source}.chain() | Fabien Fleutot | 2013-06-18 | 1 | -0/+25 |
| | |||||
* | Fix makefile and test_socket_error.lua | Diego Nehab | 2013-06-12 | 1 | -2/+6 |
| | |||||
* | Unix domain tests still broken. | Diego Nehab | 2013-05-30 | 2 | -12/+12 |
| | |||||
* | Add. Allow get `error` option to socket. | moteus | 2013-05-29 | 1 | -0/+27 |
| | |||||
* | Fix. use table.unpack in mimetest on Lua 5.2. | moteus | 2013-05-27 | 1 | -0/+2 |
| | |||||
* | Build with Lua 5.2 without LUA_COMPAT_MODULE flag. | moteus | 2013-05-27 | 1 | -2/+2 |
| | | | | LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules. | ||||
* | Fix. Optional IPv6 test | moteus | 2013-05-27 | 1 | -2/+8 |
| | |||||
* | Fix. setsockname fails with "*" as host. | moteus | 2013-05-27 | 1 | -0/+6 |
| | | | | Add. test_bind.lua | ||||
* | Fix. getaddrinfo returns garbage as address on Windows. | moteus | 2013-05-27 | 1 | -0/+15 |
| | | | | Add. test_getaddrinfo.lua | ||||
* | Merge pull request #27 from catwell/pull-noarg | Diego Nehab | 2013-04-17 | 1 | -4/+4 |
|\ | | | | | fix more uses of arg | ||||
| * | remove uses of arg in the codebase | Pierre Chapuis | 2013-01-23 | 1 | -4/+4 |
| | | |||||
* | | Use the length operator (#) instead of table.getn. | Gerardo Marset | 2013-02-25 | 3 | -9/+9 |
|/ | | | | | table.getn was deprecated in Lua 5.1 in favor of #, the length operator. See: http://www.lua.org/manual/5.1/manual.html#7.2 | ||||
* | Fix udp:setpeername("*") | Diego Nehab | 2012-08-23 | 2 | -0/+35 |
| | | | | | | | | | | | | | | There seems to be a curious difference between MacOS and Linux and I am not sure if this is documented. When you break a "connection" on Mac OS, you only eliminate the peer association, but the local address remains bound. On Linux, breaking a "connection" eliminates the binding to the local address. Have you guys ever come accross this? Another irritating difference is that connect() returns the error EAFNOSUPPORT on Mac OS. I am going to ignore all errors when the reason for calling connect() is simply to break the "connection". | ||||
* | Test server exits gracefully at command of test client | Diego Nehab | 2012-05-01 | 1 | -0/+7 |
| | |||||
* | Update method list in tests | Florian Zeitz | 2012-04-29 | 1 | -1/+4 |
| | |||||
* | Select loadstring or load for Lua 5.1/5.2 respectively | Florian Zeitz | 2012-04-29 | 1 | -1/+1 |
| | |||||
* | Test method registration for IPv6 sockets | Florian Zeitz | 2012-04-29 | 1 | -4/+9 |
| | |||||
* | Making progress toward a release | Diego Nehab | 2012-04-23 | 1 | -10/+121 |
| | | | | | | | | | | Documented headers.lua Update copyright date everywhere Remove RCSID from files Move version back to 2.1 rather than 2.1.1 Fixed url package to support ipv6 hosts Changed "domain" to "family" in tcp and udp structures Implemented getfamily methods | ||||
* | Merge branch 'git-sam' into diego-sam-mwild-integration | Sam Roberts | 2012-04-11 | 5 | -1/+141 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts in options.c were just due to independent small functions being close to each other. unix.c in mwild was broken, it wasn't using LUASOCKET_API. serial.c needed luaL_reg renamed, and to use LUASOCKET_API. makefile didn't respect standard DESTDIR and prefix makefile variables, and didn't allow LUAV variable to select lua version to build against. I've tested the top-level install-both target builds and installs against both lua5.1 and lua5.2, but not done further testing. Conflicts: README config gem/ltn012.tex makefile src/makefile src/options.c src/options.h src/tcp.c src/usocket.c | ||||
| * | On failure, exit with a message instead of blocking indefinitely. | Sam Roberts | 2012-04-11 | 1 | -2/+4 |
| | | |||||
| * | Support getoption method for tcp objects. | Sam Roberts | 2012-04-11 | 1 | -0/+41 |
| | |