[Jslib] Non-blocking sockets?

Pete Collins pete at mozdev.org
Tue Dec 2 09:16:21 EST 2003


Rick Morris wrote:
> Pete (and all),
> 
> Is there currently any way to get non-blocking sockets in Jslib? 
> Anything planned?

Looks like the code in question is here:

 
http://www.mozdev.org/lxr/http/source/jslib/libraries/network/socket.js#L141

The code looks suspicious there.

try overriding and setting

   var openFlags = 0;

Which might open the stream nonblocking.

Stephen Knight revamped the socket code. Maybe Steve can comment.

--pete

-- 
Pete Collins
www.mozdev.org
www.mozdevgroup.com



More information about the Jslib mailing list