I think you could be right, what do you think zhfeng?
If I understood correctly, Makoto is suggesting a while loop similar to:
(and the other apr_socket_send in that method).
Thanks Makoto for pointing out it and I think it needs a wrapper here. I will raise a JIRA.