From: Rob McCool <robm@netscape.com>
Newsgroups: netscape.devs-nsapi
Subject: Re: Threaded Enterprise NSAPI
Date: Wed, 04 Sep 1996 14:15:41 -0700

Mike Neverisky wrote: > > My AuthTrans function exchanges UNIX Datagrams > with another process. It would appear that the > Enterprise Server process is blocking when one of > the threads blocks on a recvfrom() call. > > Does this sound like a plausible scenario?

Unfortunately yes. The problem is that network I/O has to go through a custom threading library (the net_* calls like net_select do) in order to avoid blocking everybody.

I would suggest making the socket non-blocking, calling recvfrom(), and then calling select if no data is available. The AIX 4.2 server uses native threads from IBM and does not have this particular problem.

--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.