then does not have to try to track while connections it choked, this
will free up all of them in one call.
+ - there's a new, optional callback LWS_CALLBACK_CLOSED_HTTP which gets
+ called when an HTTP protocol socket closes
+
User api changes
----------------
lwsl_debug("closing http fd %d\n", wsi->u.http.fd);
close(wsi->u.http.fd);
wsi->u.http.fd = 0;
+ context->protocols[0].callback(context, wsi,
+ LWS_CALLBACK_CLOSED_HTTP, wsi->user_space, NULL, 0);
}
#ifndef LWS_NO_EXTENSIONS
LWS_CALLBACK_CLIENT_FILTER_PRE_ESTABLISH,
LWS_CALLBACK_CLIENT_ESTABLISHED,
LWS_CALLBACK_CLOSED,
+ LWS_CALLBACK_CLOSED_HTTP,
LWS_CALLBACK_RECEIVE,
LWS_CALLBACK_CLIENT_RECEIVE,
LWS_CALLBACK_CLIENT_RECEIVE_PONG,
*
* LWS_CALLBACK_CLOSED: when the websocket session ends
*
+ * LWS_CALLBACK_CLOSED_HTTP: when a HTTP (non-websocket) session ends
+ *
* LWS_CALLBACK_RECEIVE: data has appeared for this server endpoint from a
* remote client, it can be found at *in and is
* len bytes long