Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

HTTP connection closes before sending the response when using MG_F_USER_5

Hello,

I'd like to reboot the system after sending HTTP response to the user agent. For that I set following flags in my HTTP endpoint registered with mgos_register_http_endpoint:

c->flags |= MG_F_SEND_AND_CLOSE | MG_F_USER_5;

Unfortunately the device is rebooted before a response is sent. If I remove MG_F_USER_5 then I see the response. Is it a mgos bug or I am doing something wrong?

Thanks in advance

Sign In or Register to comment.