Long polling with NSURLConnection
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 -[NSURLConnectionDelegate connection:didReceiveData] is not being called until after I close the connection, regardless of the cache settings I use when creating the NSURLRequest . 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