forked from eden-emu/eden
		
	network: GetAndLogLastError: ignore Errno::AGAIN
If non-blocking sockets are used, they generate a lot of Errno::AGAIN errors when they didn't receive any data. These errors shouldn't be logged.
This commit is contained in:
		
							parent
							
								
									dd5c41b5a6
								
							
						
					
					
						commit
						ddeb8d854e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -227,8 +227,12 @@ Errno GetAndLogLastError() { | |||
| #else | ||||
|     int e = errno; | ||||
| #endif | ||||
|     const Errno err = TranslateNativeError(e); | ||||
|     if (err == Errno::AGAIN) { | ||||
|         return err; | ||||
|     } | ||||
|     LOG_ERROR(Network, "Socket operation error: {}", NativeErrorToString(e)); | ||||
|     return TranslateNativeError(e); | ||||
|     return err; | ||||
| } | ||||
| 
 | ||||
| int TranslateDomain(Domain domain) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sönke Holz
						Sönke Holz