[mod-lisp-devel] Possible bug

Alain.Picard at memetrics.com Alain.Picard at memetrics.com
Thu Mar 31 02:27:29 UTC 2005


Dear all,

Sorry to follow up on myself again, but I discovered that,
in "int OpenLispSocket(excfg *cfg)",

if after the successful socket open, I change the code
from

  /* Check if we connected */
  if (ret == -1)
    return -1;

to

  /* Check if we connected */
  if (ret == -1)
    {
      ap_pclosesocket(SocketPool, sock);
      return -1;
    }

The broken behaviour disappears.

I do not know if there are other places in the code which may
also be leaking descriptors in other call paths.

Cheers,
						--ap



More information about the mod-lisp-devel mailing list