- changed status to resolved
mhttpd crash in mjson encoder if connected remotely
Issue #254
resolved
by mistake MIDAS_SERVER_HOST was set and mhttpd connected to the experiment through the mserver.
then it promptly crashed in the json encoder which calls db_lock_database() which complains about missing semaphore (cannot lock odb remotely!).
the result was very confusing.
to prevent the confusion, I should add a check in mhttpd and refuse to run if connected remotely. (maybe do same for mlogger?).
the correct fix is in the json encoder - I should not call db_lock_database() if connected remotely!
K.O.
Comments (1)
-
reporter - Log in to comment
fixed commit 3b8d33f. K.O.