igrigorik/em-http-request — Issue #169: Stream method eats empty lines
Author: cblavier
Created: 2012-02-01 11:02:31+00:00
State: open

Hey, I'm using the stream method to consume Twitter streaming API.

In order to detect when my connection is stalled, I update a timestamp variable each time I receive some content in the stream method. The issue is that in this method I never receive empty lines sent by Twitter API (it sends periodic \n to allow clients to keep the connection alive)

When using curl I receive the empty lines.

Thanks for your help.