Fix high latency of multipart requests

Hi there,

here's again fix 78f9a3c124eb82ced92ceeef69dc7e8abaab4be3, but now it goes to 1.7.x branch.