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.