title: POCO Request timeout even when keepAlive is set
body: <p>I am using a simple Get request to get notification from server. I want the request to persist until response is received from the server (It may be any long 1 to 9 hours). But i am facing the issue of request timeout in 2 mins. I am setting both session and request as "keepalive". But its not helping. I have also tried using setKeepAliveTimeout and given it a large value. But this too didnt changed anything. Below is the code i am using:</p>
  
  <pre><code>try{
          //Prepare request
          Poco::URI uri(url);
          const Poco::Net::Context::Ptr context = new Poco::Net::Context(Poco::Net::Context::CLIENT_USE, "", "", "", Poco::Net::Context::VERIFY_NONE, 9, false, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
          Poco::Net::HTTPSClientSession session(uri.getHost(), uri.getPort(), context);
          session.setKeepAlive(true);
  
          // prepare path
          std::string path(uri.getPathAndQuery());
          if (path.empty())
          {
              path = "/";
          }
  
          // send request
          Poco::Net::HTTPRequest req(Poco::Net::HTTPRequest::HTTP_GET, path, Poco::Net::HTTPMessage::HTTP_1_1);
        req.setKeepAlive(true);
          session.sendRequest(req);
  
          // Get response
          Poco::Net::HTTPResponse res;
  
          //Get status code
       statusCode = res.getStatus());
          //Get status
          status = res.getReason();
  
          //Get body
          std::istream &amp;inStream = session.receiveResponse(res);
          std::ostringstream outStringStream;
          outStringStream &lt;&lt; inStream.rdbuf();
          response = outStringStream.str();
      }
      catch(Poco::Exception&amp; exception)
      {
         cout&lt;&lt;exception.displayText();
      }
  </code></pre>
  
  <p>Please let me know where i am wrong. Thanks.</p>
  
  <p>I get the status -1 Timeout in around 2 minutes.</p>