title: Long polling with NSURLConnection
body: <p>I'm working on an iPhone application which will use long-polling to send event notifications from the server to the client over HTTP.  After opening a connection on the server I'm sending small bits of JSON that represent events, as they occur.  I am finding that <code>-[NSURLConnectionDelegate connection:didReceiveData]</code> is not being called until after I close the connection, regardless of the cache settings I use when creating the <code>NSURLRequest</code>.  I've verified that the server end is working as expected - the first JSON event will be sent immediately, and subsequent events will be sent over the wire as they occur.  Is there a way to use <code>NSURLConnection</code> to receive these events as they occur, or will I need to instead drop down to the CFSocket API?</p>
  
  <p>I'm starting to work on integrating CocoaAsyncSocket, but would prefer to continue using <code>NSURLConnection</code> if possible as it fits much better with the rest of my REST/JSON-based web service structure.</p>