[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luasocket/soap: can I keep the connection open?
- From: Scott Vokes <vokes.s@...>
- Date: Sun, 3 Oct 2010 09:11:11 -0400
On Sat, Oct 2, 2010 at 9:56 PM, <firstname.lastname@example.org> 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.