X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Ferrorpage.h;h=d634eb4a0025272c91185fe3d74fc27c9c521df3;hb=a750e510255a44b1861500b9b766694b37048c9d;hp=74a30b6efc504a8a3f44a1c57c47ad95763baf65;hpb=13b08e1ce31c7876e928efd6567eaf1542191c58;p=thirdparty%2Fsquid.git diff --git a/src/errorpage.h b/src/errorpage.h index 74a30b6efc..d634eb4a00 100644 --- a/src/errorpage.h +++ b/src/errorpage.h @@ -37,6 +37,7 @@ #include "squid.h" #include "auth/UserRequest.h" #include "cbdata.h" +#include "comm/forward.h" #include "ip/Address.h" /** @@ -174,26 +175,26 @@ SQUIDCEXTERN void errorInitialize(void); SQUIDCEXTERN void errorClean(void); /** - \ingroup ErrorPageAPI + * \ingroup ErrorPageAPI * * This function generates a error page from the info contained * by err and then sends it to the client. * The callback function errorSendComplete() is called after - * the page has been written to the client socket (fd). + * the page has been written to the client (clientConn). * errorSendComplete() deallocates err. We need to add * err to the cbdata because comm_write() requires it * for all callback data pointers. * - \note normally errorSend() should only be called from - * routines in ssl.c and pass.c, where we don't have any - * StoreEntry's. In client_side.c we must allocate a StoreEntry - * for errors and use errorAppendEntry() to account for - * persistent/pipeline connections. + * \note normally errorSend() should only be called from + * routines in ssl.c and pass.c, where we don't have any + * StoreEntry's. In client_side.c we must allocate a StoreEntry + * for errors and use errorAppendEntry() to account for + * persistent/pipeline connections. * - \param fd socket where page object is to be written - \param err This object is destroyed after use in this function. + * \param clientConn socket where page object is to be written + * \param err This object is destroyed after use in this function. */ -SQUIDCEXTERN void errorSend(int fd, ErrorState *err); +SQUIDCEXTERN void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err); /** \ingroup ErrorPageAPI