mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
LWS_WITH_STATS: clean refactor dust
https://github.com/warmcat/libwebsockets/issues/1383
This commit is contained in:
parent
a0c558df11
commit
9d51d8e702
2 changed files with 4 additions and 3 deletions
|
@ -3398,7 +3398,7 @@ lws_stats_log_dump(struct lws_context *context)
|
||||||
wl = pt->http.ah_wait_list;
|
wl = pt->http.ah_wait_list;
|
||||||
while (wl) {
|
while (wl) {
|
||||||
m++;
|
m++;
|
||||||
wl = wl->ah_wait_list;
|
wl = wl->http.ah_wait_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
lwsl_notice(" AH wait list count / actual: %d / %d\n",
|
lwsl_notice(" AH wait list count / actual: %d / %d\n",
|
||||||
|
@ -3435,7 +3435,8 @@ lws_stats_log_dump(struct lws_context *context)
|
||||||
strcpy(buf, "unknown");
|
strcpy(buf, "unknown");
|
||||||
#if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)
|
#if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)
|
||||||
lwsl_notice(" peer %s: count wsi: %d, count ah: %d\n",
|
lwsl_notice(" peer %s: count wsi: %d, count ah: %d\n",
|
||||||
buf, df->count_wsi, df->count_ah);
|
buf, df->count_wsi,
|
||||||
|
df->http.count_ah);
|
||||||
#else
|
#else
|
||||||
lwsl_notice(" peer %s: count wsi: %d\n",
|
lwsl_notice(" peer %s: count wsi: %d\n",
|
||||||
buf, df->count_wsi);
|
buf, df->count_wsi);
|
||||||
|
|
|
@ -331,7 +331,7 @@ lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, int len)
|
||||||
if (m == SSL_ERROR_WANT_WRITE || SSL_want_write(wsi->tls.ssl)) {
|
if (m == SSL_ERROR_WANT_WRITE || SSL_want_write(wsi->tls.ssl)) {
|
||||||
lws_set_blocking_send(wsi);
|
lws_set_blocking_send(wsi);
|
||||||
|
|
||||||
lwsl_notice("%s: want write\n", __func__);
|
lwsl_debug("%s: want write\n", __func__);
|
||||||
|
|
||||||
return LWS_SSL_CAPABLE_MORE_SERVICE;
|
return LWS_SSL_CAPABLE_MORE_SERVICE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue