[Nice] patch for TURN error 437 Allocation Mismatch

Madaro Livio livio.madaro at telecomitalia.it
Thu Mar 7 09:18:43 PST 2013


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.

[cid:00000000000000000000000000000003 at TI.Disclaimer]Rispetta l'ambiente. Non stampare questa mail se non ? necessario.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130307/eadccdf6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Open-socket-with-random-port.patch
Type: application/octet-stream
Size: 1596 bytes
Desc: 0001-Open-socket-with-random-port.patch
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130307/eadccdf6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo Ambiente_foglia2.jpg
Type: image/jpeg
Size: 677 bytes
Desc: logo Ambiente_foglia2.jpg
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130307/eadccdf6/attachment.jpg>


More information about the nice mailing list