mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-11-03 19:40:39 +01:00 
			
		
		
		
	Problem: check for item.fd causes zloop_poller regression
Solution: fix the check for the socket. This regression happens when using zloop with zmq_pollitem_it with only file descriptors registerted through zloop_poller.
This commit is contained in:
		@@ -834,7 +834,7 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
 | 
			
		||||
        for (int j = j_start; j < found_events; ++j) {
 | 
			
		||||
            if (
 | 
			
		||||
                (items_[i].socket && items_[i].socket == events[j].socket) ||
 | 
			
		||||
                (!(items_[i].socket || items_[j].socket) && items_[i].fd == events[j].fd)
 | 
			
		||||
                (!items_[i].socket && items_[i].fd == events[j].fd)
 | 
			
		||||
            ) {
 | 
			
		||||
                items_[i].revents = events[j].events & items_[i].events;
 | 
			
		||||
                if (!repeat_items) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user