diff options
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r-- | src/lib/internal.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h index 17e5c634..92b5b511 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | /** | 20 | /** |
21 | * @file microhttpd/internal.h | 21 | * @file lib/internal.h |
22 | * @brief internal shared structures | 22 | * @brief internal shared structures |
23 | * @author Daniel Pittman | 23 | * @author Daniel Pittman |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
@@ -801,6 +801,11 @@ struct MHD_Connection | |||
801 | bool suspended; | 801 | bool suspended; |
802 | 802 | ||
803 | /** | 803 | /** |
804 | * Are we ready to read from TLS for this connection? | ||
805 | */ | ||
806 | bool tls_read_ready; | ||
807 | |||
808 | /** | ||
804 | * Is the connection wanting to resume? | 809 | * Is the connection wanting to resume? |
805 | */ | 810 | */ |
806 | bool resuming; | 811 | bool resuming; |
@@ -1501,6 +1506,15 @@ struct MHD_Daemon | |||
1501 | bool disallow_upgrade; | 1506 | bool disallow_upgrade; |
1502 | 1507 | ||
1503 | /** | 1508 | /** |
1509 | * Did we hit some system or process-wide resource limit while | ||
1510 | * trying to accept() the last time? If so, we don't accept new | ||
1511 | * connections until we close an existing one. This effectively | ||
1512 | * temporarily lowers the "connection_limit" to the current | ||
1513 | * number of connections. | ||
1514 | */ | ||
1515 | bool at_limit; | ||
1516 | |||
1517 | /** | ||
1504 | * Disables optional calls to `shutdown()` and enables aggressive | 1518 | * Disables optional calls to `shutdown()` and enables aggressive |
1505 | * non-blocking optimistic reads and other potentially unsafe | 1519 | * non-blocking optimistic reads and other potentially unsafe |
1506 | * optimizations. See #MHD_daemon_enable_turbo(). | 1520 | * optimizations. See #MHD_daemon_enable_turbo(). |
@@ -1508,6 +1522,16 @@ struct MHD_Daemon | |||
1508 | bool enable_turbo; | 1522 | bool enable_turbo; |
1509 | 1523 | ||
1510 | /** | 1524 | /** |
1525 | * 'True' if some data is already waiting to be processed. If set | ||
1526 | * to 'true' - zero timeout for select()/poll*() is used. Should be | ||
1527 | * reset each time before processing connections and raised by any | ||
1528 | * connection which require additional immediately processing | ||
1529 | * (application does not provide data for response, data waiting in | ||
1530 | * TLS buffers etc.) | ||
1531 | */ | ||
1532 | bool data_already_pending; | ||
1533 | |||
1534 | /** | ||
1511 | * MHD_daemon_quiesce() was run against this daemon. | 1535 | * MHD_daemon_quiesce() was run against this daemon. |
1512 | */ | 1536 | */ |
1513 | bool was_quiesced; | 1537 | bool was_quiesced; |