Closed genofire closed 6 years ago
I am not sure this is a l3roamd issue. This might be broken in the respondd module for the babel network. Could you query the l3roamd socket directly as well?
This happen just sometimes (round about every 10th request). I think either it is more are less a problem of gluon-respondd module for l3roamd and his problem to connect to l3roamd.
I did not like the value -1
there should not be a value, if it the request failed.
hm. I rather like -1 to be specific about an error. However, we should investigate why sometimes the connection is not possible.
How about not sending the field at all rather than sending an invalid value when there is a problem?
actually, the -1 does not originate from l3roamd but from respondd returning an error value when connecting to the l3roamd socket. So while this is an issue, it is certainly not one for l3roamd.
I can do something like this, when compiling the json structure:
if (total >= 0)
json_object_object_add(ret, "total", json_object_new_int(total));
b6bd1cc280dc573175e9ae65b97a6d50f76bfe50 hab ich im Angebot im n_babel-work-branch.
Ich schließ das mal hier und verlagere die Diskussion in den PR #934 aus gluon.
node / respondd:
yanic: