Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Use base.select instead of just select | mpeterv | 2016-02-11 | 1 | -1/+1 | |
| | | | ||||||
* | | | Fix error in ltn12 under Lua 5.3 | mpeterv | 2016-02-11 | 1 | -0/+1 | |
|/ / | ||||||
* | | When zero-timeout, only try first address in connect. | Diego Nehab | 2015-12-03 | 2 | -4/+4 | |
| | | ||||||
* | | Changed buffer-per-socket to buffer-per-operation. | Diego Nehab | 2015-10-06 | 3 | -34/+31 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | | Added support for arbitrary datagram sizes. | Diego Nehab | 2015-10-05 | 2 | -23/+40 | |
| | | | | | | | | | | The maximum size is still constant per UDP object, but the size can be speficied at creation time. | |||||
* | | Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into ↵ | Diego Nehab | 2015-10-05 | 3 | -21/+19 | |
|\ \ | | | | | | | | | | KateAdams-tcp_reuseport | |||||
| * | | Added ability to set the option `reuseport` of a tcp socket. | kobra | 2013-09-12 | 2 | -1/+3 | |
| | | | ||||||
* | | | Merge branch 'agnostic' | Diego Nehab | 2015-08-25 | 8 | -205/+177 | |
|\ \ \ | | | | | | | | | | | | | Seems safe to move to master. | |||||
| * | | | Fixes suggested by @Florob in #147. | Diego Nehab | 2015-08-25 | 4 | -69/+54 | |
| | | | | ||||||
| * | | | New agnostic IPv4 IPv6 functions. | Diego Nehab | 2015-08-22 | 8 | -152/+139 | |
| | | | | | | | | | | | | | | | | | | | | Also dealing with EPROTOTYPE Yosemite seems to be throwing at us for no reason. | |||||
* | | | | Merge pull request #96 from chastabor/master | Diego Nehab | 2015-08-24 | 1 | -2/+11 | |
|\ \ \ \ | |/ / / |/| | | | Generate headers before proxy changes host and port | |||||
| * | | | Add proxy authentication headers if present. | Charles Tabor | 2014-03-27 | 1 | -0/+9 | |
| | | | | ||||||
| * | | | Generate headers before proxy changes host and port | Charles Tabor | 2014-03-21 | 1 | -3/+3 | |
| |/ / | ||||||
* | | | Fix rockspec and serial.c module. | Diego Nehab | 2015-08-21 | 2 | -17/+1 | |
| | | | ||||||
* | | | Merge pull request #141 from cjtallman/master | Diego Nehab | 2015-08-21 | 3 | -1/+16 | |
|\ \ \ | | | | | | | | | Added missing options for UDP getoption. | |||||
| * | | | Added missing options for UDP getoption. | cjtallman | 2015-06-11 | 3 | -1/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Documentation says "dontroute", "broadcast", "reuseaddr", and "reuseport" are supported as arguments to getoption, however their implementations were missing. | |||||
* | | | | New compat.h module implements luaL_setfuncs. | Diego Nehab | 2015-08-21 | 19 | -172/+163 | |
|/ / / | | | | | | | | | | Makes initialization code simpler everywhere. | |||||
* | | | Fix cut-paste typo on PIE_HOST_NOT_FOUND. | Diego Nehab | 2015-03-03 | 1 | -30/+30 | |
| | | | ||||||
* | | | Merge branch 'errormsg' of https://github.com/Tieske/luasocket into ↵ | Diego Nehab | 2015-03-03 | 3 | -51/+78 | |
|\ \ \ | | | | | | | | | | | | | Tieske-errormsg | |||||
| * | | | updated error messages, less error prone, platform independent | Thijs Schreijer | 2015-03-03 | 3 | -51/+78 | |
| | | | | ||||||
* | | | | Merge pull request #119 from gatzka/master | Diego Nehab | 2015-03-03 | 3 | -12/+13 | |
|\ \ \ \ | | | | | | | | | | | Make casts const correct. | |||||
| * | | | | Remove unused function luaL_typerror(). | Stephan Gatzka | 2014-12-21 | 1 | -8/+0 | |
| | | | | | ||||||
| * | | | | Add missing prototype for opt_get_reuseport(). | Stephan Gatzka | 2014-12-21 | 1 | -1/+2 | |
| | | | | | ||||||
| * | | | | Make local function udp_strerror() static. | Stephan Gatzka | 2014-12-21 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Make casts const correct. | Stephan Gatzka | 2014-12-21 | 1 | -10/+10 | |
| | |_|/ | |/| | | ||||||
* | | | | Better solution to luaL_checkint... | Diego Nehab | 2015-03-01 | 2 | -12/+2 | |
| | | | | ||||||
* | | | | fixed accidental global in `ftp.lua` | Thijs Schreijer | 2015-03-01 | 1 | -1/+1 | |
| |/ / |/| | | ||||||
* | | | Fix inet_global_getaddrinfo leak of getnameinfo | Diego Nehab | 2015-02-18 | 1 | -0/+1 | |
| | | | | | | | | | | | | Issue #127 closed. | |||||
* | | | Out of the box support for Lua 5.3. | Diego Nehab | 2015-02-18 | 3 | -63/+64 | |
|/ / | ||||||
* | | make socket.protect yieldable on Lua 5.2/5.3 | Philipp Janda | 2014-11-10 | 1 | -5/+30 | |
| | | ||||||
* | | src/usocket: Don't unset/set O_NONBLOCK around listen() or shutdown() calls. | daurnimator | 2014-10-27 | 1 | -4/+0 | |
| | | | | | | | | | | It doesn't effect them. Not true on windows | |||||
* | | src/usocket: Do not setblocking on destroy; | daurnimator | 2014-10-27 | 1 | -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 RFC7230 | Diego Nehab | 2014-07-15 | 1 | -3/+2 | |
|/ | ||||||
* | 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 | |
| | |