aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix makefile and test_socket_error.luaDiego Nehab2013-06-123-4/+12
|
* Merge pull request #58 from mascarenhas/masterDiego Nehab2013-06-122-67/+105
|\ | | | | New rockspec that uses LuaRocks to build instead of the makefile
| * new rockspec using builtin build typeFabio Mascarenhas2013-06-112-67/+105
|/
* Changing from 2.1-rc1 to 3.0-rc1.Diego Nehab2013-06-1110-34/+33
|
* 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; } ```
* | Unix domain tests still broken.Diego Nehab2013-05-302-12/+12
| |
* | Remove warnings. Move windows specific code.unknown2013-05-305-31/+40
| |
* | Leaving if in src/ but out of build for now.Diego Nehab2013-05-308-196/+265
|/
* Merge pull request #43 from moteus/moteus-getopt-errorDiego Nehab2013-05-295-0/+43
|\ | | | | Add. Allow get `error` option to socket.
| * Add. Allow get `error` option to socket.moteus2013-05-295-0/+43
|/
* Change VC12 project to no LUA_COMPAT_MODUULEunknown2013-05-292-8/+8
|
* 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-2813-166/+435
|\ | | | | | | 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-272-7/+7
| |
| * Merge branch 'pkulchenko' into unstableDiego Nehab2013-05-2722-142/+582
| |\
| | * Simplifying getaddrinfo treatment.Diego Nehab2013-05-271-32/+18
| | |
| | * Merge branch 'moteus' of https://github.com/moteus/luasocket into moteusunknown2013-05-275-6/+50
| | |\
| | * | Fix Visual Studio 2012 projectsunknown2013-05-2710-56/+316
| | | |
| * | | Change Mac OS Lua directoryDiego Nehab2013-05-251-1/+1
| | | |
* | | | 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-2714-115/+179
| |_|/ |/| | | | | | | | 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-273-1/+9
| | | | | | | | | | | | Add. test_bind.lua
* | | Fix. getaddrinfo returns garbage as address on Windows.moteus2013-05-272-3/+33
| |/ |/| | | | | Add. test_getaddrinfo.lua
* | No need for build script: makefile target instead.Diego Nehab2013-05-261-9/+0
| |
* | Merge tryconnect6 into inet_tryconnect.Diego Nehab2013-05-264-16/+29
| |
* | Fix socket.connectDiego Nehab2013-05-262-3/+19
| | | | | | | | | | | | | | Previous implementation was not making sure the socket had the same family as the addr returned by getaddrinfo. So instead of "connection refused", we could get "invalid argument", which was our fault.
* | Check linux build.Diego Nehab2013-05-252-3/+3
| |
* | Added my test command lines.Diego Nehab2013-05-254-3/+14
| |
* | Add MingW support.unknown2013-05-257-103/+157
| |
* | Merge branch 'lua52-mingw' of https://github.com/pkulchenko/luasocket into ↵unknown2013-05-243-0/+65
|\ \ | |/ |/| | | pkulchenko
| * Updated IPV6_V6ONLY to match header files on Windows.Paul Kulchenko2013-04-091-1/+1
| |
| * Added inet_pton/inet_ntop for MinGW on Windows; compiles with Lua52.Paul Kulchenko2013-04-073-0/+65
| |
* | Merge pull request #37 from davidm/unstableDiego Nehab2013-04-171-1/+1
|\ \ | | | | | | lpr.lua: fix invalid string escape sequence \?
| * | lpr.lua: fix invalid string escape sequence \?David Manura2013-04-171-1/+1
|/ / | | | | | | Not valid in 5.2 and luajit.
* | Merge pull request #29 from ↵Diego Nehab2013-04-171-0/+67
|\ \ | | | | | | | | | | | | keplerproject/94c958871919726f2954b3d3fa9a9f8ae21124e9 Rockspec for building and installing LuaSocket 2.1 with LuaRocks
| * | rockspec for luasocket 2.1 unstableFabio Mascarenhas2013-01-241-0/+67
| |/
* | Merge pull request #27 from catwell/pull-noargDiego Nehab2013-04-174-12/+13
|\ \ | | | | | | fix more uses of arg
| * | remove uses of arg in the codebasePierre Chapuis2013-01-232-7/+6
| | |
| * | fix use of arg in ltn documentationPierre Chapuis2013-01-232-5/+7
| |/
* | Merge pull request #32 from ideka/unstableDiego Nehab2013-04-1711-19/+19
|\ \ | |/ |/| Use the length operator (#) instead of table.getn.
| * Use the length operator (#) instead of table.getn.Gerardo Marset2013-02-2511-19/+19
|/ | | | | 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