Skip to content
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. @diegonehab

    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. @diegonehab
  4. Leaving if in src/ but out of build for now.

    Diego Nehab committed May 30, 2013
  5. @moteus

    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. @diegonehab

    Merge pull request #43 from moteus/moteus-getopt-error

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

    Diego Nehab committed May 29, 2013
Commits on May 28, 2013
  1. @moteus
  2. @diegonehab
Commits on May 27, 2013
  1. Typo fixed.

    Diego Nehab committed May 28, 2013
  2. @diegonehab

    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 28, 2013
  3. @diegonehab

    Fix wrong usage of inet_pton.

    diegonehab committed May 27, 2013
  4. @diegonehab

    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. @diegonehab
  8. @diegonehab
  9. @moteus
  10. @moteus

    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
  11. @moteus

    Fix. Optional IPv6 test

    moteus committed May 27, 2013
  12. @moteus

    Fix. setsockname fails with "*" as host.

    Add. test_bind.lua
    moteus committed May 27, 2013
  13. @moteus

    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. @diegonehab

    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. @diegonehab

    Merge pull request #37 from davidm/unstable

    lpr.lua: fix invalid string escape sequence \?
    diegonehab committed Apr 17, 2013
Something went wrong with that request. Please try again.