X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=qzTkBnl1Q9TfBzfa
	yl88/7DaVTj+zmj8VpxIGUDSAS9TRaQpeehGmiZtKJdPrcZbXEWIZBzNQCIBFEqy
	5AXzE+78JpDRYwvHm66APMNc8QIWXq1zGeCAvI7A3POY67k+8hz0eapeFo/Fg9Ku
	JI2cCltWRvDFhzV5e5aU0Jy3erk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=2L676Tle0HEI4hxNoAsl5s
	cLNIM=; b=c8tffs21Hrd5NGA7mxWDcCIn7PNvPG+JwIYHzkbSkJYp1AUsnrKKCh
	9nUotskcTeiWdMPvn84VGbDGX0UkpRqUM+D0+IAUNJK9brpMxT8nrZZlfTf9mWU1
	rMV6B+8K+2M+5OKbBfxQdla91QTzFK+MgD0QUA5i5graf6N0A1e8c=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*u:6.1, H*UA:6.1, day
X-HELO: m0.truegem.net
Subject: Re: RPC clnt_create() adress already in use
To: cygwin@cygwin.com
References: <59D90AF8D70E9740907BACDE2BCB520836E01220@RESW102.resdom01.local> <812cb3b6-9d28-971c-45eb-38421d817ca4@maxrnd.com> <20180131091053.GA4223@calimero.vinschen.de>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <09e70acf-1b09-f1cc-1517-41b67b1836a9@maxrnd.com>
Date: Wed, 31 Jan 2018 01:35:40 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
MIME-Version: 1.0
In-Reply-To: <20180131091053.GA4223@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Corinna Vinschen wrote:
> On Jan 31 00:15, Mark Geisert wrote:
>> PAULUS, Raimund, TI-ABN wrote:
>>> Hi Mark,
>>>
>>> in my email (https://sourceware.org/ml/cygwin/2017-12/msg00194.html) i described 2 approaches. I prefer  nr 1.
>>> Here the part of the source in bindresvport.c:
>>> [...]
[...]
>
> I'm a bit puzzled here in terms of using your own bindresvport.  Cygwin
> implements bindresvport{_sa} for quite some time, 2006 or earlier.

Yeesh; I did not know that.  Thanks for pointing that out. So that means there's 
another possible way to try solving the OP's issue: by using Cygwin's 
bindresvport* in place of the one supplied with libtirpc.

If we see the OP's issue with Cygwin's bindresvport*, I think it makes more 
sense to patch libtirpc than to change Cygwin's bindresvport*.  The crux of OP's 
issue is that libtirpc's code expects to see EADDRINUSE errors from bind() 
whereas on Cygwin they aren't often seen until you connect().

I'll look into using Cygwin's bindresvport() in the next day or two.
Thanks all,

..mark

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

