This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: More pipe problems (was Re: [Fwd: 1.5.11-1: sftp performance problem])
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 4 Oct 2004 17:22:25 +0200
- Subject: Re: More pipe problems (was Re: [Fwd: 1.5.11-1: sftp performance problem])
- References: <20040923123136.GG12802@cygbert.vinschen.de> <20040923162828.CA385E4F9@wildcard.curl.com>
- Reply-to: cygwin-patches at cygwin dot com
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.