From: Brian Candler Date: 2011-10-26T20:28:15+09:00 Subject: Re: How to correctly handle partial write in Ruby Sockets? Grigory P. wrote in post #1028553: > 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? Because ruby's write will keep calling the underlying system write() until the complete message is sent. You don't have to worry about it. -- Posted via http://www.ruby-forum.com/.