Re: NSS server slot reference leak

2009-09-23 Thread Ambroz Bizjak
On Sep 23, 9:01 pm, Wan-Teh Chang wrote: > This sounds good.  Try adding a SSL_ShutdownServerSessionIDCache() > call before the NSS_Shutdown() call, as our test SSL server selfserv.c does: That worked, thank you very much. It should however be documented. The SSL Reference at http://www.mozilla.o

Re: NSS server slot reference leak

2009-09-23 Thread Wan-Teh Chang
On Wed, Sep 23, 2009 at 10:19 AM, Ambroz Bizjak wrote: > > When a signal happens, I attempt to clean up everything. I PR_Close > client SSL file descriptors, and go global cleanup with > SECKEY_DestroyPrivateKey, CERT_DestroyCertificate, NSS_Shutdown and > PR_Cleanup. This sounds good. Try addin

NSS server slot reference leak

2009-09-23 Thread Ambroz Bizjak
Hi, I'm writing a server application using NSS. It appears to be working, but when it's time to call NSS_Shutdown(), it fails with SEC_ERROR_BUSY. I've been looking into it and it appears the client sockets leak PK11SlotInfo references. The leak only occurs when a handshake completes, and not if a