title: libev socket communication fails
body: <p>I have a  libev based socket server that gets messages from multiple simultaneos sockets</p>
  
  <p>I use recv() to receive message from the socket. And send() to communicate to the socket
  The problem is that sometimes even if I do a send() and the output of send() is > 0 
  still the socket on the other side receives nothing</p>
  
  <p>The stripped down version of the code is here 
  <a href="http://pastebin.com/SM7uPkVD" rel="nofollow">http://pastebin.com/SM7uPkVD</a></p>
  
  <p>(Most of it is cut-pasted from internet ) </p>
  
  <p>The problem is that 99% of the times the socket communication works absolutely fine, it is only some places where this fails.
  Is there some obvious thing I am missing</p>