async
async copied to clipboard
An async framework for Lua/Torch.
I have the following code for the TCP server (modified from the example) in a file named `tcp-server.lua`. ``` lua async = require 'async' async.tcp.listen({host='localhost', port=4321}, function(client) -- Receive: client.ondata(function(chunk)...
I have a python TCP server adapted from the example in https://docs.python.org/2/library/socketserver.html. ``` python class CommandTCPHandler(SocketServer.StreamRequestHandler): def handle(self): # self.rfile is a file-like object created by the handler; # we...
Trying to install async through luarockt on os x yosemite and I get the following error: luarocks install async Installing https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... switching to 'build' mode Cloning into 'async'......
[here's a test that demonstrates it](https://github.com/clementfarabet/async/blob/master/tests/test-process-leak.lua). Node idea where it comes from yet.
Relevant to async. Memory still leaks. I am just calling uv.read_stop explicitly (in handle.lua), once reading has started, before shutting down. https://github.com/creationix/luv/issues/22 It's a hacky way, but it solves leaking....
Not urgent, but it would be nice to have the full http stack (server + client), using http_parser.
Depends on [uv_getaddrinfo](https://github.com/joyent/libuv/blob/master/src/win/getaddrinfo.c#L226).