delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/18/01:58:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B2B280D.1060105@gmail.com>
Date: Fri, 18 Dec 2009 09:58:21 +0300
From: yesin <v DOT yesin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: SO_REUSEADDR and windows enhanced socket security
References: <4B27AFEB DOT 4030609 AT gmail DOT com> <20091215171051 DOT GH8059 AT calimero DOT vinschen DOT de>
In-Reply-To: <20091215171051.GH8059@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna! Thanks!
Can you shedule a build for cygwin.dll with changes included in CVS?
I promise to test it!

Thanks again,Vladimir Yesin.

Corinna Vinschen ?????:
> On Dec 15 18:48, yesin wrote:
>   
>> looks like a problem with SO_REUSEADDR exists in CYGWIN for all
>> windows with support for "Enhanced socket security" (see
>> http://msdn.microsoft.com/en-us/library/ms740621(VS.85).aspx <http://www.google.com/url?sa=D&q=http://msdn.microsoft.com/en-us/library/ms740621%28VS.85%29.aspx&usg=AFQjCNF9bXOmPTwYjiP37Xdq2xRAYNXfWg>)
>>
>>
>> i'am trying to start multimple simultaneous UDP listeners for a
>> multicast packets on a single machine (reuse same address and port
>> with SO_REUSEADDR)
>> [...]
>> with cygwin environment i can't run multiple listerers... bind error:
>> Address already in use!
>>     
>
> Thanks for the report and especially thanks for the testcase.  There
> is code in Cygwin which skips calls to setsockopt(SO_REUSEADDR) on
> systems supporting enhanced socket security.  That's necessary to
> emulate socket re-binding behaviour more closely to POSIX behaviour.
> The problem was that this should have been only called for TCP sockets
> but Cygwin accidentally called it for UDP sockets as well.  I fixed
> that in CVS.
>
>
> Thanks again,
> Corinna
>
>   


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019