Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add MYCFLAGS and MYLDFLAGS go allow for customization | Diego Nehab | 2013-09-09 | 1 | -6/+11 |
| | |||||
* | Add support for FreeBSD in makefile | Diego Nehab | 2013-09-09 | 1 | -0/+29 |
| | | | | Thanks to Leryan. See issue #78. | ||||
* | Fixed timeout bug introduced by commit e81a6ff | Diego Nehab | 2013-09-09 | 1 | -8/+4 |
| | |||||
* | Merge pull request #74 from catwell/pull-hostport | Diego Nehab | 2013-09-09 | 1 | -1/+3 |
|\ | | | | | Include port in default Host header | ||||
| * | include port in default Host header | Pierre Chapuis | 2013-08-14 | 1 | -1/+3 |
| | | | | | | See RFC 2616 section 14.23. | ||||
* | | Merge pull request #65 from fab13n/480a818bf0ef6de32527ba14fc2bb27e754d0612 | Diego Nehab | 2013-09-09 | 1 | -3/+10 |
|\ \ | |/ |/| | Support for several filters in ltn12.{sink,source}.chain | ||||
| * | support multiple filters in ltn12.{sink,source}.chain() | Fabien Fleutot | 2013-06-18 | 1 | -3/+10 |
| | | |||||
* | | http: look for PROXY in _M, not as a global | Pierre Chapuis | 2013-07-05 | 1 | -2/+2 |
| | | |||||
* | | http: do not set global TIMEOUT | Pierre Chapuis | 2013-07-05 | 1 | -1/+1 |
|/ | |||||
* | Fix makefile and test_socket_error.lua | Diego Nehab | 2013-06-12 | 1 | -1/+1 |
| | |||||
* | Changing from 2.1-rc1 to 3.0-rc1. | Diego Nehab | 2013-06-11 | 5 | -9/+8 |
| | |||||
* | Fix unix export marker. | Diego Nehab | 2013-06-11 | 2 | -1/+7 |
| | |||||
* | Export global table only if "module()" is defined. | Diego Nehab | 2013-06-05 | 2 | -21/+24 |
| | |||||
* | No need for inet_pton. | Diego Nehab | 2013-06-04 | 3 | -39/+3 |
| | |||||
* | Merge pull request #49 from moteus/moteus-ftp-get-2xx | Diego Nehab | 2013-05-30 | 1 | -1/+5 |
|\ | | | | | Fix. recive 2xx while ftp.get cause timeout error | ||||
| * | Fix. recive 2xx while ftp.get cause timeout error | moteus | 2013-05-30 | 1 | -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. | unknown | 2013-05-30 | 5 | -31/+40 |
| | | |||||
* | | Leaving if in src/ but out of build for now. | Diego Nehab | 2013-05-30 | 7 | -193/+257 |
|/ | |||||
* | Add. Allow get `error` option to socket. | moteus | 2013-05-29 | 4 | -0/+16 |
| | |||||
* | Export global only if LUA_COMPAT_MODULE defined. | Diego Nehab | 2013-05-29 | 11 | -37/+55 |
| | |||||
* | Merge branch 'unstable' of git://github.com/diegonehab/luasocket into ↵ | moteus | 2013-05-28 | 6 | -134/+145 |
|\ | | | | | | | moteus-lua52 | ||||
| * | Fix "final" bug in pton and TCP connreset handling | unknown | 2013-05-28 | 2 | -19/+27 |
| | | |||||
| * | Typo fixed. | Diego Nehab | 2013-05-28 | 1 | -1/+1 |
| | | |||||
| * | Fixed inet_pton and a new Winsock UDP bug. | unknown | 2013-05-28 | 4 | -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. | unknown | 2013-05-27 | 1 | -2/+2 |
| | | |||||
| * | Link only against ws2_32.lib. | unknown | 2013-05-27 | 1 | -3/+3 |
| | | |||||
| * | Simplifying getaddrinfo treatment. | Diego Nehab | 2013-05-27 | 1 | -32/+18 |
| | | |||||
| * | Merge branch 'moteus' of https://github.com/moteus/luasocket into moteus | unknown | 2013-05-27 | 2 | -4/+21 |
| |\ | |||||
| * | | Fix Visual Studio 2012 projects | unknown | 2013-05-27 | 3 | -24/+26 |
| | | | |||||
* | | | Build with Lua 5.2 without LUA_COMPAT_MODULE flag. | moteus | 2013-05-27 | 13 | -113/+177 |
| |/ |/| | | | | | LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules. | ||||
* | | Fix. setsockname fails with "*" as host. | moteus | 2013-05-27 | 2 | -1/+3 |
| | | | | | | | | Add. test_bind.lua | ||||
* | | Fix. getaddrinfo returns garbage as address on Windows. | moteus | 2013-05-27 | 1 | -3/+18 |
|/ | | | | Add. test_getaddrinfo.lua | ||||
* | Merge tryconnect6 into inet_tryconnect. | Diego Nehab | 2013-05-26 | 4 | -16/+29 |
| | |||||
* | Fix socket.connect | Diego Nehab | 2013-05-26 | 1 | -2/+18 |
| | | | | | | | 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 Nehab | 2013-05-25 | 1 | -2/+2 |
| | |||||
* | Add MingW support. | unknown | 2013-05-25 | 5 | -98/+142 |
| | |||||
* | Merge branch 'lua52-mingw' of https://github.com/pkulchenko/luasocket into ↵ | unknown | 2013-05-24 | 2 | -0/+56 |
|\ | | | | | | | pkulchenko | ||||
| * | Added inet_pton/inet_ntop for MinGW on Windows; compiles with Lua52. | Paul Kulchenko | 2013-04-07 | 2 | -0/+56 |
| | | |||||
* | | Use the length operator (#) instead of table.getn. | Gerardo Marset | 2013-02-25 | 2 | -4/+4 |
|/ | | | | | 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 | ||||
* | Cookie modifications. | Diego Nehab | 2013-01-10 | 1 | -0/+1 |
| | |||||
* | Remove warnings and fix makefile for Win32. | Diego Nehab | 2012-12-11 | 8 | -36/+30 |
| | |||||
* | Fix socket_accept usage to depend on family. | Diego Nehab | 2012-12-11 | 8 | -13/+22 |
| | |||||
* | Fix ltn12 version. | Diego Nehab | 2012-12-10 | 1 | -1/+1 |
| | |||||
* | Merge pull request #25 from ewmailing/unstable | Diego Nehab | 2012-12-10 | 1 | -0/+25 |
|\ | | | | | Copied socket_gaistrerror implementation from usocket to wsocket to allo... | ||||
| * | Copied socket_gaistrerror implementation from usocket to wsocket to allow ↵ | Eric Wing | 2012-11-20 | 1 | -0/+25 |
| | | | | | | | | Windows version to compile because it is missing the function. EAI_OVERFLOW and EAI_SYSTEM are commented out because they don't exist on Windows. | ||||
* | | fix use of arg in ltn12 | Pierre Chapuis | 2012-09-17 | 1 | -1/+3 |
|/ | |||||
* | Merge pull request #22 from Florob/smtp | Diego Nehab | 2012-08-23 | 1 | -2/+2 |
|\ | | | | | Send SMTP AUTH LOGIN response using tp:send(). Fixes #18 | ||||
| * | Send SMTP AUTH LOGIN response using tp:send(). Fixes #18 | Florian Zeitz | 2012-08-07 | 1 | -2/+2 |
| | | | | | | | | | | | | tp:command() uppercases the command. Without a command we would end up with a space in front of the data. Therefore use send() directly here. | ||||
* | | Fix udp:setpeername("*") | Diego Nehab | 2012-08-23 | 4 | -30/+55 |
|/ | | | | | | | | | | | | | | 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". | ||||
* | Fix HORRIBLE but in b64/qp code. | Diego Nehab | 2012-08-01 | 2 | -1/+9 |
| | | | | | | | Bug was caught by user moteus. Code was checking if arguments was nil after using luaL_Buffer code, which messes with the stack. Simple to fix, though. |