On Wed, Oct 26, 2011 at 11:04 AM, Grigory Petrov <grigory.v.p / gmail.com> wrote:
> Thanks for reply.

You're welcome.

> I have checked source code for IO.write previously (Socket is
> inherited from BasicSocket that is inherited from IO, as i can see).
> It's a wrapper over POSIX write() function. And according to POSIX
> documentation, write() for sockets is exactly same as send() - just
> without flags.
>
> Why do you think write() will help? Maybe i miss something?

I used it - and it works.  Try it out yourself if you do not believe it.

Btw, #send will also block until the message is completely sent unless
you are in nonblocking mode.

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/