I am writing an android application which uses C2DM. When a user sends some message to the server, the server replies back to the sender and forwards that message to a set o
I don't know if this will work but you could try adding Content-Length:
and Connection: close
headers, and of course the explicitly flushing output.
EDIT: try this
ob_start();
//output
header("Content-Length: ".ob_get_length());
header("Connection: close");
ob_end_flush();
//do other stuff
Ob-Implicit-Flush should do the trick. :)