[mythtv-commits] [MythTV/mythtv] 68bbdf: Implement queuing of http requests

Stuart Auchterlonie noreply at github.com
Wed Oct 6 15:57:49 UTC 2021

  Branch: refs/heads/devel/http
  Home:   https://github.com/MythTV/mythtv
  Commit: 68bbdff1a63b70172ec3148f6a63f9e9920310db
  Author: Stuart Auchterlonie <stuarta at mythtv.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M mythtv/libs/libmythbase/http/mythhttpserver.cpp
    M mythtv/libs/libmythbase/http/mythhttpserver.h

  Log Message:
  Implement queuing of http requests

With this change rather than immediately processing the
incoming request, it's placed on a queue, and a signal
is emitted to request the work is processed.

If there are available threads available then the incoming
request is immediately processed.

If no threads are available we wait until one of the existing
threads signals its completion, then check to see if there is
anything in the queue to process. If there is, then we trigger
processing of the queued incoming connection.

Fixes: #397

More information about the mythtv-commits mailing list