aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added missing options for UDP getoption.cjtallman2015-06-113-1/+16
| | | | | | Documentation says "dontroute", "broadcast", "reuseaddr", and "reuseport" are supported as arguments to getoption, however their implementations were missing.
* Fix cut-paste typo on PIE_HOST_NOT_FOUND.Diego Nehab2015-03-031-30/+30
|
* Merge branch 'errormsg' of https://github.com/Tieske/luasocket into ↵Diego Nehab2015-03-033-51/+78
|\ | | | | | | Tieske-errormsg
| * updated error messages, less error prone, platform independentThijs Schreijer2015-03-033-51/+78
| |
* | Merge pull request #119 from gatzka/masterDiego Nehab2015-03-033-12/+13
|\ \ | | | | | | Make casts const correct.
| * | Remove unused function luaL_typerror().Stephan Gatzka2014-12-211-8/+0
| | |
| * | Add missing prototype for opt_get_reuseport().Stephan Gatzka2014-12-211-1/+2
| | |
| * | Make local function udp_strerror() static.Stephan Gatzka2014-12-211-1/+1
| | |
| * | Make casts const correct.Stephan Gatzka2014-12-211-10/+10
| | |
* | | Better solution to luaL_checkint...Diego Nehab2015-03-012-12/+2
| | |
* | | fixed accidental global in `ftp.lua`Thijs Schreijer2015-03-011-1/+1
| |/ |/|
* | Fix inet_global_getaddrinfo leak of getnameinfoDiego Nehab2015-02-181-0/+1
| | | | | | | | Issue #127 closed.
* | Out of the box support for Lua 5.3.Diego Nehab2015-02-183-63/+64
|/
* make socket.protect yieldable on Lua 5.2/5.3Philipp Janda2014-11-101-5/+30
|
* src/usocket: Don't unset/set O_NONBLOCK around listen() or shutdown() calls.daurnimator2014-10-271-4/+0
| | | | | It doesn't effect them. Not true on windows
* src/usocket: Do not setblocking on destroy;daurnimator2014-10-271-1/+0
| | | | | | | This results in unexpected behaviour if the socket has been `dup()`d, as O_NONBLOCK is shared. Close is always 'blocking' anyway See https://github.com/wahern/cqueues/issues/13 for an example use case
* Fix Host: header according to RFC7230Diego Nehab2014-07-151-3/+2
|
* Add MYCFLAGS and MYLDFLAGS go allow for customizationDiego Nehab2013-09-091-6/+11
|
* Add support for FreeBSD in makefileDiego Nehab2013-09-091-0/+29
| | | | Thanks to Leryan. See issue #78.
* Fixed timeout bug introduced by commit e81a6ffDiego Nehab2013-09-091-8/+4
|
* Merge pull request #74 from catwell/pull-hostportDiego Nehab2013-09-091-1/+3
|\ | | | | Include port in default Host header
| * include port in default Host headerPierre Chapuis2013-08-141-1/+3
| | | | | | See RFC 2616 section 14.23.
* | Merge pull request #65 from fab13n/480a818bf0ef6de32527ba14fc2bb27e754d0612Diego Nehab2013-09-091-3/+10
|\ \ | |/ |/| Support for several filters in ltn12.{sink,source}.chain
| * support multiple filters in ltn12.{sink,source}.chain()Fabien Fleutot2013-06-181-3/+10
| |
* | http: look for PROXY in _M, not as a globalPierre Chapuis2013-07-051-2/+2
| |
* | http: do not set global TIMEOUTPierre Chapuis2013-07-051-1/+1
|/
* Fix makefile and test_socket_error.luaDiego Nehab2013-06-121-1/+1
|
* Changing from 2.1-rc1 to 3.0-rc1.Diego Nehab2013-06-115-9/+8
|
* Fix unix export marker.Diego Nehab2013-06-112-1/+7
|
* Export global table only if "module()" is defined.Diego Nehab2013-06-052-21/+24
|
* No need for inet_pton.Diego Nehab2013-06-043-39/+3
|
* Merge pull request #49 from moteus/moteus-ftp-get-2xxDiego Nehab2013-05-301-1/+5
|\ | | | | Fix. recive 2xx while ftp.get cause timeout error
| * Fix. recive 2xx while ftp.get cause timeout errormoteus2013-05-301-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this example: >Client send: MDTM test.txt >Server response: 213 20120824120909 Because FTP server do not open new channel (2XX response) and LuaSocket try open new channel we get timeout. ```lua local ftp = require "socket.ftp" local ltn12 = require "ltn12" local url = require("socket.url") local URL = "ftp://USER:TEST@127.0.0.1"; local CMD = 'MDTM test.txt'; -- get timeout ftp.get{ url = URL; command = CMD; sink = ltn12.sink.table{}; } -- or we can use ftp.command ftp.command{ url = URL; command = URL, check = function(...) local status, data = ... return true end; } ```
* | Remove warnings. Move windows specific code.unknown2013-05-305-31/+40
| |
* | Leaving if in src/ but out of build for now.Diego Nehab2013-05-307-193/+257
|/
* Add. Allow get `error` option to socket.moteus2013-05-294-0/+16
|
* Export global only if LUA_COMPAT_MODULE defined.Diego Nehab2013-05-2911-37/+55
|
* Merge branch 'unstable' of git://github.com/diegonehab/luasocket into ↵moteus2013-05-286-134/+145
|\ | | | | | | moteus-lua52
| * Fix "final" bug in pton and TCP connreset handlingunknown2013-05-282-19/+27
| |
| * Typo fixed.Diego Nehab2013-05-281-1/+1
| |
| * Fixed inet_pton and a new Winsock UDP bug.unknown2013-05-284-69/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | inet_pton was copying the entire sockaddr_in struct, rather than just the sin_addr field... I am a bit unsure about the UDP fix, because it may affect TCP as well. On UDP sockets, when a sendto fails, the next receive/receivefrom fails with CONNRESET. I changed sock_recv/sock_recvfrom in wsocket.c to skip the CONNRESET from the recv/recvfrom, hoping that if the socket is TCP, sock_waitfd will get the CONNRESET again. The tests pass, but this should be tested more thoroughly.
| * Fix wrong usage of inet_pton.unknown2013-05-271-2/+2
| |
| * Link only against ws2_32.lib.unknown2013-05-271-3/+3
| |
| * Simplifying getaddrinfo treatment.Diego Nehab2013-05-271-32/+18
| |
| * Merge branch 'moteus' of https://github.com/moteus/luasocket into moteusunknown2013-05-272-4/+21
| |\
| * | Fix Visual Studio 2012 projectsunknown2013-05-273-24/+26
| | |
* | | Build with Lua 5.2 without LUA_COMPAT_MODULE flag.moteus2013-05-2713-113/+177
| |/ |/| | | | | LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
* | Fix. setsockname fails with "*" as host.moteus2013-05-272-1/+3
| | | | | | | | Add. test_bind.lua
* | Fix. getaddrinfo returns garbage as address on Windows.moteus2013-05-271-3/+18
|/ | | | Add. test_getaddrinfo.lua
* Merge tryconnect6 into inet_tryconnect.Diego Nehab2013-05-264-16/+29
|