[Mono-dev] Mono 1.2.3.1 SO_REUSEPORT / System.Net.Sockets.SocketOptionName.ReusePort Patch

Robert Jordan robertj at gmx.net
Sat May 5 19:05:01 EDT 2007


Slava Shirokov wrote:
> I understand that, but without the SO_REUSEPORT socket option certain
> applications will not function properly under FreeBSD.
> 
> So either the option needs to be added to mono conditionally at
> compile time, or there needs to be a mechanism to easily set the
> option.  Would setting SO_REUSEPORT when SO_REUSEADDR is set be more
> acceptable?

Well, this introduces a security issue on BSD and it will also
break applications that expect bind() to fail.

Can you elaborate which operations on what kind of sockets
are failing on BSD?

Robert

> 
> Robert Jordan wrote:
>> Slava Shirokov wrote:
>>> This patch adds the ability to set the SO_REUSEPORT socket option
>>> using
> System.Net.Sockets.SocketOptionName.ReusePort in
>>> mono 1.2.3.1
>>> 
>>> Patch also available here:
>>> http://slava.cyberwang.net/files/Code/Mono/mono-1.2.3.1-ReusePort.patch
>>> 
>> 
>> Since there is no SocketOptionName.ReusePort in MS.NET 1.1 or 2.0,
>> this patch cannot be accepted.
>> 
>> Robert
>> 
>> _______________________________________________ Mono-devel-list
>> mailing list Mono-devel-list at lists.ximian.com 
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list