Updated current counter on heartbeat.
Implement release request for ForeverTransport and LongPollingTransport.
- Drain writes before tripping tcs for longpolling.

#1327