mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-10-29 20:59:47 +01:00 
			
		
		
		
	Adjust number of sent messages on hiccups
Not adjusting the sent message count may lead to situation when SUB socket does not forward its subscriptions.
This commit is contained in:
		| @@ -267,6 +267,8 @@ void zmq::pipe_t::process_hiccup (void *pipe_) | |||||||
|     outpipe->flush (); |     outpipe->flush (); | ||||||
|     msg_t msg; |     msg_t msg; | ||||||
|     while (outpipe->read (&msg)) { |     while (outpipe->read (&msg)) { | ||||||
|  |        if (!(msg.flags () & msg_t::more)) | ||||||
|  |             msgs_written--; | ||||||
|        int rc = msg.close (); |        int rc = msg.close (); | ||||||
|        errno_assert (rc == 0); |        errno_assert (rc == 0); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hurton
					Martin Hurton