/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "base/AsyncCall.h"
#include "comm/forward.h"
#include "CommCalls.h"
-
-class SBuf;
+#include "sbuf/forward.h"
namespace Comm
{
* The returned flag is also placed in params.flag.
*
* \retval Comm::OK data has been read and placed in buf, amount in params.size
- * \retval Comm::COMM_ERROR an error occured, the code is placed in params.xerrno
- * \retval Comm::INPROGRESS unable to read at this time, or a minor error occured
- * \retval Comm::ENDFILE 0-byte read has occured.
+ * \retval Comm::COMM_ERROR an error occurred, the code is placed in params.xerrno
+ * \retval Comm::INPROGRESS unable to read at this time, or a minor error occurred
+ * \retval Comm::ENDFILE 0-byte read has occurred.
* Usually indicates the remote end has disconnected.
*/
Comm::Flag ReadNow(CommIoCbParams ¶ms, SBuf &buf);
/// callback handler to process an FD which is available for reading
extern PF HandleRead;
+/// maximum read delay for readers with limited lifetime
+time_t MortalReadTimeout(const time_t startTime, const time_t lifetimeLimit);
} // namespace Comm
// Legacy API to be removed