X-Spam-Check-By: sourceware.org
Date: Mon, 31 Jul 2006 14:55:42 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Cygwin List <cygwin@cygwin.com>
Subject: Re: fetchmail socket errors with CVS cygwin build from 30 July
Message-ID: <20060731125542.GI8152@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: Cygwin List <cygwin@cygwin.com>
References: <82fygicdwj.fsf@vzell-de.de.oracle.com> <20060731102601.GA22966@calimero.vinschen.de> <20060731104747.GH8152@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060731104747.GH8152@calimero.vinschen.de>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jul 31 12:47, Corinna Vinschen wrote:
> On Jul 31 12:26, Corinna Vinschen wrote:
> > On Jul 31 11:38, Dr. Volker Zell wrote:
> > > Hi
> > > 
> > > In order to track down an xemacs segfault I build the latest cygwin1.dll
> > > from CVS (30 July). With that dll fetchmail couldn't connect to my IMAP
> > > server anymore. fetchmail works well with 1.5.21.
> > > 
> > > Here is what I get when running under verbose mode:
> > > 
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: awakened at Mon Jul 31 11:05:40 2006
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: 6.3.1 querying rgmemeaimap.oraclecorp.com (protocol IMAP) at Mon Jul 31 11
> > > :05:40 2006: poll started
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: socket error while fetching from Dr.Volker.Zell@rgmemeaimap.oraclecorp.com
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: 6.3.1 querying rgmemeaimap.oraclecorp.com (protocol IMAP) at Mon Jul 31 11
> > > :05:40 2006: poll completed
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: Query status=2 (SOCKET)
> > > Jul 31 11:05:40 localhost fetchmail: PID 1740: sleeping at Mon Jul 31 11:05:40 2006
> > 
> > Can you please strip that down to a simple reproducible testcase in C?
> 
> I just tried fetchmail over ssl myself and it works fine for me with the
> current Cygwin from CVS.  There must be something in your setup which
> might cause this problem.  I definitely need more information or better,
> a simple testcase.

Scratch that.  I was able to reproduce it when not using SSL.  The
problem is apparently related to calling recv(..., MSG_PEEK).  This
isn't the first time fetchmail gets problems with WinSock's MSG_PEEK
handling.  I can't solve the underlying problem, but I can fix the
additional problem which I introduced in the snapshot.  I applied a
fix to CVS.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

