Removed FAIL message when trying ::accept() an already closed Socket::Server.
This commit is contained in:
		
							parent
							
								
									335a26df60
								
							
						
					
					
						commit
						8d17d5f6c4
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1272,7 +1272,9 @@ Socket::Connection Socket::Server::accept(bool nonblock){ | |||
|   // we could do this through accept4 with a flag, but that call is non-standard...
 | ||||
|   if (r < 0){ | ||||
|     if ((errno != EWOULDBLOCK) && (errno != EAGAIN) && (errno != EINTR)){ | ||||
|       FAIL_MSG("Error during accept: %s. Closing server socket %d.", strerror(errno), sock); | ||||
|       if (errno != EINVAL){ | ||||
|         FAIL_MSG("Error during accept: %s. Closing server socket %d.", strerror(errno), sock); | ||||
|       } | ||||
|       close(); | ||||
|     } | ||||
|     return Socket::Connection(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma