lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Sat, Oct 2, 2010 at 9:56 PM,  <> wrote:
> I use luasoap to talk to a server (vmware) and right now every soap call
> creates a new TCP socket (and closes it after the call).  As I'm actually
> using https, this means setting up the ssl connection for every call.  I
> thought I might avoid that by explicitly opening and closing the socket
> (in my login/logout methods), but I can't figure out how to do that.
   Perhaps I'm misunderstanding you, but you should be able to use
socket.setoption(yoursocket, 'keepalive') to maintain a pool of active
connections and socket.close(yoursocket) to explictly close them.