handle http api timeouts, send metrics in one single batch
0.4