More pipe problems (was Re: [Fwd: 1.5.11-1: sftp performance problem])

Corinna Vinschen vinschen@redhat.com
Mon Oct 4 15:21:00 GMT 2004


On Sep 23 12:28, Bob Byrnes wrote:
> On Sep 23,  2:31pm, Corinna Vinschen wrote:
> -- Subject: Re: More pipe problems (was Re: [Fwd: 1.5.11-1: sftp performance 
> >
> > It seems that NtQueryInformationFile doesn't return useful values
> > anymore under XP SP2.  I'm not quite sure though since it's the first
> > time I'm looking into this issue.
> > ...
> > [select_pipe] ssh 756 peek_pipe: WriteQuotaAvailable = 1024
> > [select_pipe] ssh 756 peek_pipe: OutboundQuota = 16117632
> > ...
> > Since WriteQuotaAvailable is < PIPE_BUF and OutboundQuota is ... way
> > too big, gotone resp. s->write_ready never gets set.
> > 
> -- End of excerpt from Corinna Vinschen

Oh oh.  While I just had another look into this issue, I found that my
debug output was somewhat wrong.

The correct results in this case using the native unison application is
the same endless loop. but with less weird numbers:

 ...
 [select_pipe] ssh 756 peek_pipe: WriteQuotaAvailable = 0
 [select_pipe] ssh 756 peek_pipe: OutboundQuota = 1024
 ...

So the NtQueryInformation results make more sense.  I'm terribly sorry
if my dumb fault led you on the wrong track :-(

But nevertheless the interaction with the native unison seems to work
fine, if the result of NtQueryInformation is ignored and the pipe is
always considered writeable.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list