On 2010-11-24 11:17 PDT, passfree wrote:

> Speaking of firefox, I know it is not meant to be used as a server but
> it does provide server sockets through nsIServerSocket interface. 

I'd say it's a BUG in PSM if it offers a way for XPCom users to use NSS
server sockets, but doesn't offer any way for them to initialize the
server caches.  That bug should be fixed.  That's the right solution.
IMO, the solution is not to run without any server cache.  It is to run
with at cache that is at least a small one.  When the nsIServerSocket
interface is called to create a server socket, that code should check to
ensure that the server cache is initialized, and initialize it
(atomically) if not.  A PSM patch to do that would probably be welcome.

-- 
/Nelson Bolyard
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to