TrackMessageSize implementation for http streaming and long-polling