2 * Copyright (C) 1996-2020 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
{
50 /// StoreEntry relationship with a disk cache
52 /// StoreEntry is currently not associated with any disk store entry.
53 /// Does not guarantee (or preclude!) a matching disk store entry existence.
55 /// StoreEntry is being swapped out to the associated disk store entry.
56 /// Guarantees the disk store entry existence.
58 /// StoreEntry is associated with a complete (i.e., fully swapped out) disk store entry.
59 /// Guarantees the disk store entry existence.
61 /// StoreEntry is associated with an unusable disk store entry.
62 /// Swapout attempt has failed. The entry should be marked for eventual deletion.
63 /// Guarantees the disk store entry existence.
74 * These are for StoreEntry->flag, which is defined as a SHORT
76 * NOTE: These flags are written to swap.state, so think very carefully
77 * about deleting or re-assigning!
81 ENTRY_REVALIDATE_ALWAYS
,
83 /// Tiny Store writes are likely. The writes should be aggregated together
84 /// before Squid announces the new content availability to the store
85 /// clients. For example, forming a cached HTTP response header may result
86 /// in dozens of StoreEntry::write() calls, many of which adding as little
87 /// as two bytes. Sharing those small writes with the store clients
88 /// increases overhead, especially because the client code can do nothing
89 /// useful with the written content until the whole response header is
90 /// stored. Might be combined with ENTRY_FWD_HDR_WAIT. TODO: Rename to
91 /// ENTRY_DELAY_WHILE_COALESCING to emphasize the difference from and
92 /// similarity with ENTRY_FWD_HDR_WAIT.
94 RELEASE_REQUEST
, ///< prohibits making the key public
96 ENTRY_REVALIDATE_STALE
,
100 /// The current entry response may change. The contents of an entry in this
101 /// state must not be shared with its store clients. For example, Squid
102 /// receives (and buffers) an HTTP/504 response but may decide to retry that
103 /// transaction to receive a successful response from another server
104 /// instead. Might be combined with DELAY_SENDING. TODO: Rename to
105 /// ENTRY_DELAY_WHILE_WOBBLING to emphasize the difference from and
106 /// similarity with DELAY_SENDING.
112 /// Whether the entry serves collapsed hits now.
113 /// Meaningful only for public entries.
114 ENTRY_REQUIRES_COLLAPSING
118 * These are for client Streams. Each node in the stream can be queried for
122 STREAM_NONE
, /* No particular status */
123 STREAM_COMPLETE
, /* All data has been flushed, no more reads allowed */
124 /* an unpredicted end has occurred, no more
125 * reads occurred, but no need to tell
126 * downstream that an error occurred
128 STREAM_UNPLANNED_COMPLETE
,
129 /* An error has occurred in this node or an above one,
130 * and the node is not generating an error body / it's
134 } clientStream_status_t
;
136 /* stateful helper callback response codes */
141 } stateful_helper_callback_t
;
149 #endif /* SQUID_SNMP */
156 STORE_LOG_SWAPOUTFAIL
176 * These are field indicators for raw cache-cache netdb transfers
186 * Return codes from checkVary(request)
196 * Store digest state enum
205 } digest_read_state_t
;
207 /* CygWin & Windows NT Port */
210 * Supported Windows OS types codes
225 #endif /* _SQUID_WINDOWS_ */
230 DISABLE_PMTU_TRANSPARENT
235 * TODO: This should be in htcp.h
239 HTCP_CLR_INVALIDATION
241 #endif /* USE_HTCP */
243 #endif /* SQUID_ENUMS_H */