aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(http): Allow relative redirect on https (#395)Henri D2022-10-081-0/+31
| | | Location header can now be relative: https://httpwg.org/specs/rfc9110.html#field.location
* refactor: Address issues raised by linterThijs Schreijer2022-03-199-146/+146
|
* test/find-connect-limit: add missing "socket ="E. Westbrook2020-03-281-1/+1
|
* test/udp-zero-length-send-recv: add missing "socket ="; use shebang ↵E. Westbrook2020-03-281-2/+2
| | | | "#!/usr/bin/env lua"
* test/udp-zero-length-send: add missing "socket ="; use shebang ↵E. Westbrook2020-03-281-2/+2
| | | | "#!/usr/bin/env lua"
* test/getoptions: guard calls with pcall(); check result of getoption"linger"E. Westbrook2020-03-281-4/+18
|
* test/tcp-getoptions: bugfix: missing "socket =" in require"socket"E. Westbrook2020-03-281-1/+1
|
* Merge pull request #116 from linuxmaniac/masterDiego Nehab2019-02-241-1/+3
|\ | | | | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options
| * Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" optionsVictor Seva2014-12-051-1/+3
| |
* | url.lua:remove_dot_components(): use temporary NUL marker to reduce ↵E. Westbrook2018-08-211-0/+4
| | | | | | | | empty-segment special-case code
* | url.lua:remove_dot_components(): empty path component double-dot corner caseE. Westbrook2018-08-211-0/+1
| |
* | url.lua:absolute_path(): ensure a separator between base_path and relative_pathE. Westbrook2018-08-211-1/+1
| |
* | url.lua:remove_dot_components(): avoid overconsuming dot segmentsE. Westbrook2018-08-211-0/+5
| |
* | url.lua:remove_dot_components(): limit beginning-of-string double-dot corner ↵E. Westbrook2018-08-211-0/+1
| | | | | | | | case to prevent triple-dot activation and authority collision
* | url.lua: separate remove_dot_components() from absolute_path(); also use in ↵E. Westbrook2018-08-211-4/+4
| | | | | | | | _M.absolute() even when not merging
* | url.lua:absolute_path(): fix issue #254, simplify, add more test casesE. Westbrook2018-08-191-1/+24
| |
* | Add ltn12.source.table()E. Westbrook2018-06-051-0/+9
| |
* | fixed url parsing; postpone fragment parsing after authority parsing; added ↵Herbert Leuwer2017-11-221-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 Nehab2017-03-201-1/+1
| |
* | rename unix.tcp to unix.stream, unix.udp to unix.dgramenginix2016-12-254-5/+5
| |
* | support datagram unix domain socketsenginix2016-06-244-2/+20
| |
* | Family agostic FTP and expose HTTP/FTP url parsingDiego Nehab2016-03-071-11/+23
| |
* | Don't swallow errors in finalizers.Philipp Janda2016-02-241-1/+0
| |
* | Add more tests for socket.try/protectmpeterv2016-02-211-4/+29
| |
* | Changed buffer-per-socket to buffer-per-operation.Diego Nehab2015-10-061-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 Nehab2015-08-251-7/+12
| |
* | New agnostic IPv4 IPv6 functions.Diego Nehab2015-08-223-53/+51
| | | | | | | | | | Also dealing with EPROTOTYPE Yosemite seems to be throwing at us for no reason.
* | New compat.h module implements luaL_setfuncs.Diego Nehab2015-08-211-1/+1
| | | | | | | | Makes initialization code simpler everywhere.
* | Out of the box support for Lua 5.3.Diego Nehab2015-02-183-16/+20
|/
* support multiple filters in ltn12.{sink,source}.chain()Fabien Fleutot2013-06-181-0/+25
|
* Fix makefile and test_socket_error.luaDiego Nehab2013-06-121-2/+6
|
* Unix domain tests still broken.Diego Nehab2013-05-302-12/+12
|
* Add. Allow get `error` option to socket.moteus2013-05-291-0/+27
|
* Fix. use table.unpack in mimetest on Lua 5.2.moteus2013-05-271-0/+2
|
* Build with Lua 5.2 without LUA_COMPAT_MODULE flag.moteus2013-05-271-2/+2
| | | | LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
* Fix. Optional IPv6 testmoteus2013-05-271-2/+8
|
* Fix. setsockname fails with "*" as host.moteus2013-05-271-0/+6
| | | | Add. test_bind.lua
* Fix. getaddrinfo returns garbage as address on Windows.moteus2013-05-271-0/+15
| | | | Add. test_getaddrinfo.lua
* Merge pull request #27 from catwell/pull-noargDiego Nehab2013-04-171-4/+4
|\ | | | | fix more uses of arg
| * remove uses of arg in the codebasePierre Chapuis2013-01-231-4/+4
| |
* | Use the length operator (#) instead of table.getn.Gerardo Marset2013-02-253-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 Nehab2012-08-232-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 clientDiego Nehab2012-05-011-0/+7
|
* Update method list in testsFlorian Zeitz2012-04-291-1/+4
|
* Select loadstring or load for Lua 5.1/5.2 respectivelyFlorian Zeitz2012-04-291-1/+1
|
* Test method registration for IPv6 socketsFlorian Zeitz2012-04-291-4/+9
|
* Making progress toward a releaseDiego Nehab2012-04-231-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-integrationSam Roberts2012-04-115-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 Roberts2012-04-111-2/+4
| |
| * Support getoption method for tcp objects.Sam Roberts2012-04-111-0/+41
| |