[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OmniNetworking on Solaris..beware of the NSTask problem



Tomi Engel wrote:
> 
> Under WebObjects 3.51 on Solaris/HPUX the NSTask class does not
> perform as expected (=is seriously broken). Since OmniNetworking uses
> a seperate process to perform the hostname lookups this will cause
> bizzare effects.

This was probably used because the gethostbyname() function is not
thread-safe. On Solaris you can perform thread-safe lookups using
gethostbyname_r() and similiar functions (see man pages).
It should be easy to modify OmniNetworking to use these functions.

How the reentrant functions can be used can be seen in the
NGInternetSocketAddress class of the NGNet kit available in

  ftp://ftp.gnustep.org/pub/gnustep/contrib/MOF2-fd-1998-12-28-fixed.tgz

(a similiar kit like OmniNetworking but intendend to be used with
GNUstep).

Helge
--
MDlink online service center
http://www.mdlink.de/