[mod-lisp-devel] Re: [tbnl-devel] Odd behavior (socket leak)
Edi Weitz
edi at agharta.de
Sat Jul 17 23:07:09 UTC 2004
Hi Marc!
On Sat, 17 Jul 2004 13:04:06 +0200, "Marc Battyani" <marc.battyani at fractalconcept.com> wrote:
> in OpenLispSocket:
>
> If there is a socket in cfg->LispSocket and that socket is not
> unsafe (cfg->UnsafeLispSocket) then I return this socket. I don't
> create a new one. Re-using the socket is much faster.
>
> if (cfg->LispSocket)
> if (cfg->UnsafeLispSocket)
> {
> ap_pclosesocket(SocketPool, cfg->LispSocket);
> cfg->LispSocket = 0;
> cfg->UnsafeLispSocket = 0;
> }
> else
> return cfg->LispSocket;
>
> Or did I mis-read your question ?
No, you didn't, it was just an oversight of mine.
Sorry for the noise,
Edi.
More information about the mod-lisp-devel
mailing list