gladiopeace / rcsjta

Automatically exported from code.google.com/p/rcsjta
0 stars 0 forks source link

Blocked TCP selected as local server port #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On checking for free local port to bind to for SIP the app only checks whether 
the port is free for UDP. However, if TCP and/or TLS is used a TCP socket would 
be opened at the very same port address. This port may not be available for TCP 
(it was only checked for availibility for UDP) leading to a bind exception with 
EADDRINUSE (Address already in use).

NetworkRessourceManager.generateLocalSipPort should call a new method 
NetworkRessourceManager.generateLocalUdpTcpPort which core is to test 
isLocalUdpPortFree(port) && isLocalTcpPortFree(port).

Original issue reported on code.google.com by andreas-...@telekom.de on 7 Nov 2014 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by lemordan...@gmail.com on 7 Nov 2014 at 3:27

GoogleCodeExporter commented 9 years ago
New branch with fix and test case generated

Original comment by andreas-...@telekom.de on 10 Nov 2014 at 8:31