Re: [Live-devel] setupDatagramSocket - SO_REUSEADDR problems

2009-03-12 Thread Guido Marelli
I've been testing this and the problem isn't SO_REUSEPORT (indeed we aren't setting this option). Instead, the problem is the SO_REUSEADDR socket option ... Guido Marelli wrote: Hi, I think that SO_REAUSEPORT will continue introducing problems cause we need to force a port

Re: [Live-devel] setupDatagramSocket - SO_REUSEADDR problems

2009-03-11 Thread Guido Marelli
It seems that I need to change the code again so that it always lets the OS choose the port number, but be smarter about doing so, so we don't end up in an infinite loop. Stay tuned... -- Guido Marelli Intraway Corp. Oficina AR: +54 (11) 4393-2091 Oficina CO: +57 (1) 750-4929 Ofici

Re: [Live-devel] setupDatagramSocket - SO_REUSEADDR problems

2009-03-10 Thread Guido Marelli
Hi, I'm agraid I have to desagree with you. It seems that the code on MediaSubsession::initiate will cause the effect I'am reporting when the OS offers the same odd port number for both the video and the audio stream. The method looks like this: While (1) { unsigned short rtpPortNum = fClien

[Live-devel] setupDatagramSocket - SO_REUSEADDR problems

2009-03-09 Thread Guido Marelli
ion on the setupDatagramSocket function. So, my question is: Is it safe to disable that option? I look forward to hearing from you, Regads, -- Guido Marelli Intraway Corp. Oficina AR: +54 (11) 4393-2091 Oficina CO: +57 (1) 750-4929 Oficina US: +1 (516) 620-3890 Fax: +54 (11) 525