Can you use a debugger on gromox-http? The control flow should enter MhEmsmdbPlugin::connect
(set breakpoint here), and eventually you should reach the produce_session(ctx.auth_info.username, ctx.session_string);
line in that function. (ctx.session_string -> sid)
Alternatively, you can start a bit earlier at MhEmsmdbPlugin::loadCookies
; in this function, execution should flow along here:
if (tmp_len == 0) {
if (strcasecmp(ctx.request_value, "Connect"))
return ctx.error_responsecode(resp_code::missing_cookie);
ctx.session = nullptr;
Once ctx.session is set to nullptr, control flows back to MhEmsmdbPlugin::process, where execution should proceed until
if (strcasecmp(ctx.request_value, "Connect") == 0)
result = connect(ctx);
and then you are back in MhEmsmdbPlugin::connect
, where ctx.session should still be nullptr so as to reach produce_session(...).