mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-11-04 12:17:37 +01:00 
			
		
		
		
	PollSet filters out some events #4194
This commit is contained in:
		@@ -207,9 +207,9 @@ public:
 | 
				
			|||||||
				SocketMap::iterator it = _socketMap.find(_events[i].data.ptr);
 | 
									SocketMap::iterator it = _socketMap.find(_events[i].data.ptr);
 | 
				
			||||||
				if (it != _socketMap.end())
 | 
									if (it != _socketMap.end())
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					if (_events[i].events & EPOLLIN)
 | 
										if (_events[i].events & (EPOLLIN | EPOLLRDNORM | EPOLLHUP))
 | 
				
			||||||
						result[it->second.first] |= PollSet::POLL_READ;
 | 
											result[it->second.first] |= PollSet::POLL_READ;
 | 
				
			||||||
					if (_events[i].events & EPOLLOUT)
 | 
										if (_events[i].events & (EPOLLOUT | EPOLLWRNORM))
 | 
				
			||||||
						result[it->second.first] |= PollSet::POLL_WRITE;
 | 
											result[it->second.first] |= PollSet::POLL_WRITE;
 | 
				
			||||||
					if (_events[i].events & EPOLLERR)
 | 
										if (_events[i].events & EPOLLERR)
 | 
				
			||||||
						result[it->second.first] |= PollSet::POLL_ERROR;
 | 
											result[it->second.first] |= PollSet::POLL_ERROR;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user