#167: client.put hangs if stream is not readable