Blocking call to connect()
Daniel Veillard
Daniel.Veillard at imag.fr
Wed Mar 19 06:46:16 PST 1997
>> > Any opinion on this ? I would also love a patch for non blocking DNS look
>up,
>[...]
>> yourself to strict POSIX (perhaps to run even on non-DNS systems), and
>> not count on getting non-blocking variants of the functions from POSIX
>> threads, the best hack I can think of would be to spawn off a
>> subprocess to do the lookups (and therefore, block on them); the main
>> kaffe process could then communicate by non-blocking I/O to it. (This
>
>Well, spaning of a subprocess in an operating system independend manner is
>nontrivial - e.g. on AmigaOS it is almost impossible to port programms using
>fork() without greater code changes. That is one thing I loved about kaffe -
>it doesn't use fork()... :-)
I finally choosed this solution, anyway. It's the simplest way, and IMHO
the bug is UNIX specific, so the solution is UNIX specific. On better designed
OSes maybe DNS call can be done in a non-blocking fashion. Otherwise,
one need to adapt the solution to the OS capabilities.
Integrated, will be in next release (of Amaya since it's not directly
Kaffe related).
Daniel
--
Daniel Veillard at w3.org | W3C / INRIA Rhone-Alpes | Today's Bookmarks :
Daniel.Veillard at inrialpes.fr| 655 av de l'Europe | Linux, WWW, Java,
Tel : +33 04 76 61 53 85 | 38330 Montbonnot | badminton, Kaffe,
Fax : +33 04 76 54 76 15 | France | Amaya and CSS.
Home: +33 04 76 63 05 86 | http://opera.inrialpes.fr/veillard
More information about the kaffe
mailing list