2 * Copyright (C) 1996-2018 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.
70 * These are for StoreEntry->flag, which is defined as a SHORT
72 * NOTE: These flags are written to swap.state, so think very carefully
73 * about deleting or re-assigning!
77 ENTRY_REVALIDATE_ALWAYS
,
79 /// Tiny Store writes are likely. The writes should be aggregated together
80 /// before Squid announces the new content availability to the store
81 /// clients. For example, forming a cached HTTP response header may result
82 /// in dozens of StoreEntry::write() calls, many of which adding as little
83 /// as two bytes. Sharing those small writes with the store clients
84 /// increases overhead, especially because the client code can do nothing
85 /// useful with the written content until the whole response header is
86 /// stored. Might be combined with ENTRY_FWD_HDR_WAIT. TODO: Rename to
87 /// ENTRY_DELAY_WHILE_COALESCING to emphasize the difference from and
88 /// similarity with ENTRY_FWD_HDR_WAIT.
90 RELEASE_REQUEST
, ///< prohibits making the key public
92 ENTRY_REVALIDATE_STALE
,
96 /// The current entry response may change. The contents of an entry in this
97 /// state must not be shared with its store clients. For example, Squid
98 /// receives (and buffers) an HTTP/504 response but may decide to retry that
99 /// transaction to receive a successful response from another server
100 /// instead. Might be combined with DELAY_SENDING. TODO: Rename to
101 /// ENTRY_DELAY_WHILE_WOBBLING to emphasize the difference from and
102 /// similarity with DELAY_SENDING.
111 * These are for client Streams. Each node in the stream can be queried for
115 STREAM_NONE
, /* No particular status */
116 STREAM_COMPLETE
, /* All data has been flushed, no more reads allowed */
117 /* an unpredicted end has occurred, no more
118 * reads occurred, but no need to tell
119 * downstream that an error occurred
121 STREAM_UNPLANNED_COMPLETE
,
122 /* An error has occurred in this node or an above one,
123 * and the node is not generating an error body / it's
127 } clientStream_status_t
;
129 /* stateful helper callback response codes */
134 } stateful_helper_callback_t
;
142 #endif /* SQUID_SNMP */
149 STORE_LOG_SWAPOUTFAIL
169 * These are field indicators for raw cache-cache netdb transfers
179 * Return codes from checkVary(request)
189 * Store digest state enum
198 } digest_read_state_t
;
200 /* CygWin & Windows NT Port */
203 * Supported Windows OS types codes
218 #endif /* _SQUID_WINDOWS_ */
223 DISABLE_PMTU_TRANSPARENT
228 * TODO: This should be in htcp.h
232 HTCP_CLR_INVALIDATION
234 #endif /* USE_HTCP */
236 #endif /* SQUID_ENUMS_H */