From: Henry N. <Henry.Ne@Arcor.de> - 2005-05-12 15:46:37
|
George P Boutwell wrote: > Good detective work Henry. I'll test this patch out on the Win2k > machines at home and if they check out I'll commit it to the > repository. > > On 5/11/05, Henry Nestler <Hen...@ar...> wrote: > >>Promblem founded. It's a feature of XP, not a bug of NT :-( Sumary: 1. For W2K need this. - if ((iodata->transferred += transferred) != iodata->transfer) { + if ((iodata->transferred += transferred) > iodata->transfer) { 2. For XP need this, for same access mode as in W2K. This have no effect for W2K. W2K is still in this mode by default. + long lpMode = PIPE_READMODE_MESSAGE; + if (!SetNamedPipeHandleState(handle, &lpMode, 0, 0)) 3. After I understand the state machine design from Jonathan =?-) now, can remove one time delay. I think. But currently I'm testing it. Sources of Point 1 + 2 are save and working good. -- Henry Nestler |