cygrunsrv + sshd + rsync = 20 times too slow -- throttled?
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Sep 15 13:42:59 GMT 2021
On Sep 15 22:04, Takashi Yano wrote:
> On Wed, 15 Sep 2021 14:20:48 +0200
> Corinna Vinschen wrote:
> > After Ken's comment, I was going to suggest this one:
> >
> > From 34b14470406cb9551f98707bf63175811a506523 Mon Sep 17 00:00:00 2001
> > From: Corinna Vinschen
> > Date: Wed, 15 Sep 2021 14:17:59 +0200
> > Subject: [PATCH] Cygwin: pipes: don't call NtQueryInformationFile on read side
> > of pipes
> >
> > NtQueryInformationFile hangs if it's called on the read side handle of
> > a pipe while another thread or process is performing a blocking read.
> >
> > Avoid select potentially hanging by calling NtQueryInformationFile
> > only on the write side of the pipe and using PeekNamedPipe otherwise.
> >
> > ---
> > winsup/cygwin/select.cc | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> > [...]
>
> LGTM.
> I also confirmed a several test cases are all passed with this patch.
Thanks for reviewing. Pushed.
Corinna
More information about the Cygwin-developers
mailing list