X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hsrv.c;h=87895a7bb083f8919b983da7f38717f12a4810cb;hb=7e674cc7202abfae0dd07df8805a0dea743bf4be;hp=f0866f82e14f6fb9ef9500bc61bdd834190b4b80;hpb=f2995647f0f79e816c7f46033e1ec824185732b5;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index f0866f82..87895a7b 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -231,8 +231,6 @@ static void end_handler(void *cls, struct MHD_Connection *connection, void **rec hreq = *recordreq; if (hreq) { - if (hreq->upgrade) - MHD_suspend_connection (connection); afb_hreq_unref(hreq); } } @@ -399,7 +397,7 @@ int afb_hsrv_start(struct afb_hsrv *hsrv, uint16_t port, unsigned int connection const union MHD_DaemonInfo *info; httpd = MHD_start_daemon( - MHD_USE_EPOLL_LINUX_ONLY | MHD_USE_TCP_FASTOPEN | MHD_USE_DEBUG | MHD_USE_SUSPEND_RESUME, + MHD_USE_EPOLL | MHD_ALLOW_UPGRADE | MHD_USE_TCP_FASTOPEN | MHD_USE_DEBUG | MHD_USE_SUSPEND_RESUME, port, /* port */ new_client_handler, NULL, /* Tcp Accept call back + extra attribute */ access_handler, hsrv, /* Http Request Call back + extra attribute */