Re: ipc in NT

From: Guido Serassio <serassio@dont-contact.us>
Date: Wed, 20 Nov 2002 23:38:24 +0100

Hi Robert,

Il 21.56 20/11/2002 Robert Collins ha scritto:
>Guido,
> You appear to be doing the following with NT:
>
>for each ipc that is created, you setup a new thread that handshakes
>with the main thread, and then spawns a child, using a socketpair aka
>pipe for communication with the child (for both TCP and UDP ipc).
>For UDP ipc you then post spawn, hand the child UDP file descriptors and
>use them thereafter.

The code in ipc.c comes from Andrey Shorin, and it's not totally clear to
me too.
Maybe be that it can be rearranged in a better manner.

>Is that accurate?

For my limited knowledge on Andrey's work, your description seems to be
correct.

>Is the reason for the extra thread to prevent squid blocking when
>waiting on a PIPE ?

I don't know.

>If so, could we get rid of the extra thread for UDP helpers as they
>don't use pipes once they are up and running?

The TCP side seems to work fine, but the UDP section is not perfect:
when squid.exe crashes, the pinger.exe process doesn't terminate.
I have tried to contact Andrey many times, but the only e-mail address that
I have is no more valid.

Regards

Guido

>Rob
>

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Thu Nov 21 2002 - 10:25:24 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:18:46 MST