This might be the most stupid thing i've ever seen, i had a broken pipe error with the method send and the ruby class 'Socket', i had this thing 4 days ago and didn't find any thing about it, and i'm kind of going crazy.
I'm almost desperate, i found a broken pipe errors at the internet, but non of them with the send method, or even with the class socket. my code goes like this:
require 'socket'
sock = Socket.open(Socket::PF_INET,Socket::SOCK_STREAM,Socket::IPPROTO_TCP)
@data = "anyThing"
@addr = pack_sockaddr_in(port, host)
sock.send(@data, 0, @addr)
any help pleas ...