|
From: | FEICHTER Christoph |
Subject: | Re: [osip-dev] bugfix in function jpipe () |
Date: | Wed, 7 Jan 2015 11:58:50 +0000 |
hi aymeric, ok – I am with you, that the wrap-around solution is more accurate. so, we leave the variable
aport as
static
static int aport = 10500; and add the following wrap-around condition before the while-slope: // check for wrap-around
if (aport >= 65535) { aport = 10500; } br, christoph From: Aymeric Moizard [mailto:address@hidden
I prefer a wrap-around solution! Accepted! Tks Aymeric 2014-12-22 12:11 GMT+01:00 FEICHTER Christoph <address@hidden>: hi aymeric, we recently found out, that eXosip_init blocks and doesn’t return, when it is called periodically and always fails - e.g. because there is no IP network available. the problem is the implementation of jpipe(): the static variable
static int aport = 10500; is increased 50 times on each try, but it is never decremented or reset back to 10500 !! when the port reaches 65536, the bind() does not return (at least under win32). our quick fix was to remove the
static argument. would you suggest to implement a wrap-around condition for the
aport variable ? br, christoph
-- Antisip -
http://www.antisip.com |
[Prev in Thread] | Current Thread | [Next in Thread] |