[Nice] patch for TURN error 437 Allocation Mismatch

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Mar 20 12:48:31 PDT 2013


Hi Madaro,

Thanks, I think the patch is a good idea. I will apply it now.
Sorry for taking so long to reply to you, I've been away on vacation for the
past couple of weeks.

Thanks,
Youness.

On 03/07/2013 12:18 PM, Madaro Livio wrote:
> Hi, I send a patch for review.
> 
> The problem happen when the libnice client crashes leaving an active UDP TURN
> allocation.  When the libnice client is run again, after the crash, the TURN
> server replies with error 437 Allocation Mismatch because the previous
> allocation is still active on the TURN server and libnice always uses the socket
> port number starting from min_port  (and so the port number is the same of the
> port number in  the previous allocation).
> 
>  
> 
> The patch open the socket port starting from a random values in the range
> min_port-max_port to use different port number each time.
> 
>  
> 
> What do you think?
> 
>  
> 
> Regards,
> 
> Livio
> 
>  
> 
> Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone
> indicate. La diffusione, copia o qualsiasi altra azione derivante dalla
> conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate
> ricevuto questo documento per errore siete cortesemente pregati di darne
> immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.
> 
> /This e-mail and any attachments// is //confidential and may contain privileged
> information intended for the addressee(s) only. Dissemination, copying, printing
> or use by anybody else is unauthorised. If you are not the intended recipient,
> please delete this message and any attachments and advise the sender by return
> e-mail, Thanks./
> 
> *rispetta l'ambienteRispetta l'ambiente. Non stampare questa mail se non è
> necessario.*
> 
> 
> 
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130320/4c96f6ab/attachment.pgp>


More information about the nice mailing list