Fix high latency of multipart requests

Multipart requests have high latency if socket send buffer fills up due
to slow consumer. Producer should perform socket readiness check to
detect that situation instead of using a fixed wait time.
Merge pull request #204 from losar/ahc-1.7.x

Fix high latency of multipart requests