Permalink
Commits on Jun 5, 2013
  1. Export global table only if "module()" is defined.

    Diego Nehab committed Jun 5, 2013
Commits on Jun 4, 2013
  1. No need for inet_pton.

    Diego Nehab committed Jun 4, 2013
Commits on May 30, 2013
  1. Merge pull request #49 from moteus/moteus-ftp-get-2xx

    Fix. recive 2xx while ftp.get cause timeout error
    diegonehab committed May 30, 2013
  2. Unix domain tests still broken.

    Diego Nehab committed May 30, 2013
  3. Leaving if in src/ but out of build for now.

    Diego Nehab committed May 30, 2013
  4. Fix. recive 2xx while ftp.get cause timeout error

    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;
    }
    ```
    moteus committed May 30, 2013
Commits on May 29, 2013
  1. Merge pull request #43 from moteus/moteus-getopt-error

    Add. Allow get `error` option to socket.
    diegonehab committed May 29, 2013
  2. Export global only if LUA_COMPAT_MODULE defined.

    Diego Nehab committed May 29, 2013
Commits on May 28, 2013
Commits on May 27, 2013
  1. Typo fixed.

    Diego Nehab committed May 27, 2013
  2. Fixed inet_pton and a new Winsock UDP bug.

    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.
    diegonehab committed May 27, 2013
  3. Fix wrong usage of inet_pton.

    diegonehab committed May 27, 2013
  4. Link only against ws2_32.lib.

    diegonehab committed May 27, 2013
  5. Merge branch 'pkulchenko' into unstable

    Diego Nehab committed May 27, 2013
  6. Simplifying getaddrinfo treatment.

    Diego Nehab committed May 27, 2013
  7. Build with Lua 5.2 without LUA_COMPAT_MODULE flag.

    LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
    moteus committed May 27, 2013
  8. Fix. Optional IPv6 test

    moteus committed May 27, 2013
  9. Fix. setsockname fails with "*" as host.

    Add. test_bind.lua
    moteus committed May 27, 2013
  10. Fix. getaddrinfo returns garbage as address on Windows.

    Add. test_getaddrinfo.lua
    moteus committed May 27, 2013
Commits on May 26, 2013
  1. No need for build script: makefile target instead.

    Diego Nehab committed May 26, 2013
  2. Merge tryconnect6 into inet_tryconnect.

    Diego Nehab committed May 26, 2013
  3. Fix socket.connect

    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.
    Diego Nehab committed May 26, 2013
Commits on May 25, 2013
  1. Check linux build.

    Diego Nehab committed May 25, 2013
  2. Added my test command lines.

    Diego Nehab committed May 25, 2013
  3. Add MingW support.

    diegonehab committed May 25, 2013
  4. Change Mac OS Lua directory

    Diego Nehab committed May 25, 2013
Commits on May 24, 2013
  1. Merge branch 'lua52-mingw' of https://github.com/pkulchenko/luasocket

    …into pkulchenko
    unknown committed May 24, 2013
Commits on Apr 18, 2013
  1. Merge pull request #37 from davidm/unstable

    lpr.lua: fix invalid string escape sequence \?
    diegonehab committed Apr 18, 2013