lua server and lua files
Posted: Sat Jan 31, 2015 10:15 pm
srv=net.createServer(net.TCP,20) ---20 sec timeout
the lua server gets its socket assigned during on("receive" of the browser's GET
now if the web page has <img src the socket will change in its GET so this second <img GET will only proceed if the starting socket is first closed
since srv is just a one socket listener.
How many sockets attached to a port Ex 80 can lua listen to?
I'm working on getting lua to serve the web page and the <img requests from individual lua files ( *gif and one web page *htm file )
I have it working so far with a web page and one <img gif file
Has anyone got a web page and *gif files served from the lua file system working?
the lua server gets its socket assigned during on("receive" of the browser's GET
now if the web page has <img src the socket will change in its GET so this second <img GET will only proceed if the starting socket is first closed
since srv is just a one socket listener.
How many sockets attached to a port Ex 80 can lua listen to?
I'm working on getting lua to serve the web page and the <img requests from individual lua files ( *gif and one web page *htm file )
I have it working so far with a web page and one <img gif file
Has anyone got a web page and *gif files served from the lua file system working?