On Jan 16, 2013, at 3:50 PM, Ritesh Adval <[email protected]> wrote: > I found that people have reported this error and one suggestion is to put > sleep after sending message. If I put sleep after sending message using a > socket it does work but not always, specially under large message size and > heavy load. > > > > Anyone has idea on what could be the issue?
Your original message said that LINGER is set to a very large value. I am assuming that when you send your messages from each of the 100 threads, when they are done then you close the socket. The LINGER value controls how long a packet may sit in the buffer before the socket is forced closed and the packet gets dropped. If a "sleep" fixes the problem, then clearly some socket is being closed prematurely and its LINGER times out thereby dropping packets. I would double check that all DEALER sockets and your ROUTER socket have a proper LINGER setting. cr _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
