I have a libev based socket server that gets messages from multiple simultaneos sockets
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
The stripped down version of the code is here http://pastebin.com/SM7uPkVD
(Most of it is cut-pasted from internet )
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