2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
34 typedef enum _mem_status_t
{
40 /// Has not considered whether to send ICP queries to peers yet.
42 /// Sent ICP queries to peers and still awaiting responses.
44 /// Not waiting for ICP responses now and will not send ICP queries later.
45 /// The ICP queries may (or may not) have been sent earlier.
54 /// StoreEntry relationship with a disk cache
56 /// StoreEntry is currently not associated with any disk store entry.
57 /// Does not guarantee (or preclude!) a matching disk store entry existence.
59 /// StoreEntry is being swapped out to the associated disk store entry.
60 /// Guarantees the disk store entry existence.
62 /// StoreEntry is associated with a complete (i.e., fully swapped out) disk store entry.
63 /// Guarantees the disk store entry existence.
65 /// StoreEntry is associated with an unusable disk store entry.
66 /// Swapout attempt has failed. The entry should be marked for eventual deletion.
67 /// Guarantees the disk store entry existence.
78 * These are for StoreEntry->flag, which is defined as a SHORT
80 * NOTE: These flags are written to swap.state, so think very carefully
81 * about deleting or re-assigning!
85 ENTRY_REVALIDATE_ALWAYS
,
87 /// Tiny Store writes are likely. The writes should be aggregated together
88 /// before Squid announces the new content availability to the store
89 /// clients. For example, forming a cached HTTP response header may result
90 /// in dozens of StoreEntry::write() calls, many of which adding as little
91 /// as two bytes. Sharing those small writes with the store clients
92 /// increases overhead, especially because the client code can do nothing
93 /// useful with the written content until the whole response header is
94 /// stored. Might be combined with ENTRY_FWD_HDR_WAIT. TODO: Rename to
95 /// ENTRY_DELAY_WHILE_COALESCING to emphasize the difference from and
96 /// similarity with ENTRY_FWD_HDR_WAIT.
98 RELEASE_REQUEST
, ///< prohibits making the key public
100 ENTRY_REVALIDATE_STALE
,
104 /// The current entry response may change. The contents of an entry in this
105 /// state must not be shared with its store clients. For example, Squid
106 /// receives (and buffers) an HTTP/504 response but may decide to retry that
107 /// transaction to receive a successful response from another server
108 /// instead. Might be combined with DELAY_SENDING. TODO: Rename to
109 /// ENTRY_DELAY_WHILE_WOBBLING to emphasize the difference from and
110 /// similarity with DELAY_SENDING.
116 /// Whether the entry serves collapsed hits now.
117 /// Meaningful only for public entries.
118 ENTRY_REQUIRES_COLLAPSING
122 * These are for client Streams. Each node in the stream can be queried for
126 STREAM_NONE
, /* No particular status */
127 STREAM_COMPLETE
, /* All data has been flushed, no more reads allowed */
128 /* an unpredicted end has occurred, no more
129 * reads occurred, but no need to tell
130 * downstream that an error occurred
132 STREAM_UNPLANNED_COMPLETE
,
133 /* An error has occurred in this node or an above one,
134 * and the node is not generating an error body / it's
138 } clientStream_status_t
;
140 /* stateful helper callback response codes */
145 } stateful_helper_callback_t
;
153 #endif /* SQUID_SNMP */
160 STORE_LOG_SWAPOUTFAIL
180 * These are field indicators for raw cache-cache netdb transfers
190 * Return codes from checkVary(request)
200 * Store digest state enum
209 } digest_read_state_t
;
211 /* CygWin & Windows NT Port */
214 * Supported Windows OS types codes
229 #endif /* _SQUID_WINDOWS_ */
234 DISABLE_PMTU_TRANSPARENT
239 * TODO: This should be in htcp.h
243 HTCP_CLR_INVALIDATION
245 #endif /* USE_HTCP */
247 #endif /* SQUID_ENUMS_H */