aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 1f239f10..bb9974a9 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1056,8 +1056,37 @@ struct MHD_UpgradeResponseHandle
1056 /** 1056 /**
1057 * Set to #MHD_YES after the application finished with the socket 1057 * Set to #MHD_YES after the application finished with the socket
1058 * by #MHD_UPGRADE_ACTION_CLOSE. 1058 * by #MHD_UPGRADE_ACTION_CLOSE.
1059 *
1060 * When BOTH @e was_closed (changed by command from application)
1061 * AND @e clean_ready (changed internally by MHD) are set to
1062 * #MHD_YES, function #MHD_resume_connection() will move this
1063 * connection to cleanup list.
1064 * @remark This flag could be changed from any thread.
1059 */ 1065 */
1060 int was_closed; 1066 int was_closed;
1067
1068 /**
1069 * Set to #MHD_YES if connection is ready for cleanup.
1070 *
1071 * In TLS mode functions #MHD_connection_finish_forward_() must
1072 * be called before setting this flag to #MHD_YES.
1073 *
1074 * In thread-per-connection mode #MHD_YES in this flag means
1075 * that connection's thread exited or about to exit and will
1076 * not use MHD_Connection::urh data anymore.
1077 *
1078 * In any mode #MHD_YES in this flag also means that
1079 * MHD_Connection::urh data will not be used for socketpair
1080 * forwarding and forwarding itself is finished.
1081 *
1082 * When BOTH @e was_closed (changed by command from application)
1083 * AND @e clean_ready (changed internally by MHD) are set to
1084 * #MHD_YES, function #MHD_resume_connection() will move this
1085 * connection to cleanup list.
1086 * @remark This flag could be changed from thread that process
1087 * connection's recv(), send() and response.
1088 */
1089 int clean_ready;
1061}; 1090};
1062 1091
1063 1092
@@ -1410,11 +1439,15 @@ struct MHD_Daemon
1410#if HTTPS_SUPPORT 1439#if HTTPS_SUPPORT
1411 /** 1440 /**
1412 * Head of DLL of upgrade response handles we are processing. 1441 * Head of DLL of upgrade response handles we are processing.
1442 * Used for upgraded TLS connections when thread-per-connection
1443 * is not used.
1413 */ 1444 */
1414 struct MHD_UpgradeResponseHandle *urh_head; 1445 struct MHD_UpgradeResponseHandle *urh_head;
1415 1446
1416 /** 1447 /**
1417 * Tail of DLL of upgrade response handles we are processing. 1448 * Tail of DLL of upgrade response handles we are processing.
1449 * Used for upgraded TLS connections when thread-per-connection
1450 * is not used.
1418 */ 1451 */
1419 struct MHD_UpgradeResponseHandle *urh_tail; 1452 struct MHD_UpgradeResponseHandle *urh_tail;
1420 1453