output/httpd: update API documentation

This commit is contained in:
Max Kellermann 2021-03-02 18:24:22 +01:00
parent 99217593bf
commit 133c8834df
2 changed files with 5 additions and 7 deletions

View File

@ -140,14 +140,12 @@ private:
boost::intrusive::constant_time_size<true>> clients;
/**
* A temporary buffer for the httpd_output_read_page()
* function.
* A temporary buffer for the ReadPage() function.
*/
std::byte buffer[32768];
/**
* The maximum and current number of clients connected
* at the same time.
* The maximum number of clients connected at the same time.
*/
unsigned clients_max;

View File

@ -239,9 +239,9 @@ HttpdOutput::Delay() const noexcept
{
if (!LockHasClients() && pause) {
/* if there's no client and this output is paused,
then httpd_output_pause() will not do anything, it
will not fill the buffer and it will not update the
timer; therefore, we reset the timer here */
then Pause() will not do anything, it will not fill
the buffer and it will not update the timer;
therefore, we reset the timer here */
timer->Reset();
/* some arbitrary delay that is long enough to avoid