commit e60359c0b39da49350dee1495702a586ce64532f parent 492bce058e6f02399913e3374a75cdbe6db1d0c6 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 10 Oct 2023 20:38:32 +0300 Upgraded connection: cosmetics Diffstat:
| M | src/microhttpd/daemon.c | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -1424,10 +1424,8 @@ process_urh (struct MHD_UpgradeResponseHandle *urh) else /* 0 < res */ { urh->in_buffer_used += (size_t) res; - if (0 < gnutls_record_check_pending (connection->tls_session)) - { - connection->tls_read_ready = true; - } + connection->tls_read_ready = + (0 < gnutls_record_check_pending (connection->tls_session)); } if (MHD_EPOLL_STATE_ERROR == ((MHD_EPOLL_STATE_ERROR | MHD_EPOLL_STATE_READ_READY) & urh->app.celi)) @@ -1593,7 +1591,7 @@ process_urh (struct MHD_UpgradeResponseHandle *urh) (uint64_t) urh->in_buffer_used, MHD_socket_strerr_ (err)); #endif - /* Discard any data received form remote. */ + /* Discard any data received from remote. */ urh->in_buffer_used = 0; /* Reading from remote client is not required anymore. */ urh->in_buffer_size = 0;