title: Poco::Net library hangs on output of Poco::Net::SocketStream
body: <p>going by the slides on the <a href="http://pocoproject.org/documentation/index.html" rel="nofollow">POCO website</a>, I wrote a program almost identical to their first NET example.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  
  #include &lt;Poco/Net/SocketAddress.h&gt;
  #include &lt;Poco/Net/StreamSocket.h&gt;
  #include &lt;Poco/Net/SocketStream.h&gt;
  #include &lt;Poco/StreamCopier.h&gt;
  
  
  int main(int argc, char** argv){
  
      Poco::Net::SocketAddress socket_address("www.google.com",80);
      Poco::Net::StreamSocket stream_socket(socket_address);
      Poco::Net::SocketStream socket_stream(stream_socket);
  
      socket_stream &lt;&lt; "GET / HTTP/1.1\r\n"
             "Host: www.google.com\r\n"
             "\r\n";
      socket_stream.flush();
  
      Poco::StreamCopier::copyStream(socket_stream,std::cout);
  
      return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>The CopyStream function outputs some of the data, and then hangs.
  How do I get the rest of the data?</p>