]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/client_side.h
merge from trunk r14444
[thirdparty/squid.git] / src / client_side.h
index 5cfd05da97769cf86cef9359b6bed41e00db93da..d264c20599aef53998ea030cf851ff97451a4557 100644 (file)
@@ -205,7 +205,7 @@ public:
     /// try to make progress on a transaction or read more I/O
     void kick();
 
-    bool isOpen() const;
+    virtual bool isOpen() const;
 
     Http1::TeChunkedParser *bodyParser; ///< parses HTTP/1.1 chunked request body
 
@@ -254,6 +254,10 @@ public:
         AsyncCall::Pointer closeHandler; /*The close handler for pinned server side connection*/
     } pinning;
 
+    /// If the port is not set then it is a connection-less object 
+    /// created by an internal squid subsystem
+    bool connectionless() const { return port == NULL; }
+
     bool transparent() const;
 
     /// true if we stopped receiving the request