[kaffe] Bug Report: multiple sockets can't bind to same multicast address

Guilhem Lavaux guilhem@kaffe.org
Thu Oct 30 08:25:02 2003


Everton da Silva Marques wrote:

>On Wed, Oct 29, 2003 at 02:02:54PM -0200, Everton da Silva Marques wrote:
>  
>
>>On Tue, Oct 07, 2003 at 02:46:22PM -0300, Everton da Silva Marques wrote:
>>    
>>
>>>Kaffe (1.1.1 and 1.1.2) does not allow multiple multicast
>>>sockets to bind to the same address/port pair.
>>>      
>>>
>>I think the problem is, MulticastSocket constructors call setReuseAddress(true)
>>_after_ the invokation of super(). But super() (DatagramSocket) tries to
>>bind the socket, and gets an exception.
>>
>>Thus, the fix for this problem requires to setReuseAddress(true) before
>>binding the socket.
>>    
>>
>
>Please find attached a possible patch for this issue.
>
>Regards,
>Everton
>  
>

Thanks Everton. But meanwhile I've found another way to fix the problem 
using the standard API
(which was wrongly implemented). So it should be fixed in the CVS by now.

Regards,
Guilhem.